Tqdm wraps tqdm so we can add configurable global defaults for certain tqdm parameters.

class allennlp.common.tqdm.Tqdm[source]

Bases: object

default_mininterval: float = 0.1
static set_default_mininterval(value: float) → None[source]
static set_slower_interval(use_slower_interval: bool) → None[source]

If use_slower_interval is True, we will dramatically slow down tqdm's default output rate. tqdm's default output rate is great for interactively watching progress, but it is not great for log files. You might want to set this if you are primarily going to be looking at output through log files, not the terminal.

static tqdm(*args, **kwargs)[source]