Skip to content

tqdm

[ allennlp.common.tqdm ]


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

logger.propagate#

logger.propagate = False

replace_cr_with_newline#

def replace_cr_with_newline(message: str) -> str

TQDM and requests use carriage returns to get the training line to update for each batch without adding more lines to the terminal output. Displaying those in a file won't work correctly, so we'll just make sure that each batch shows up on its one line.

TqdmToLogsWriter Objects#

class TqdmToLogsWriter(object):
 | def __init__(self)

write#

 | def write(self, message)

flush#

 | def flush(self)

Tqdm Objects#

class Tqdm()

tqdm#

 | @staticmethod
 | def tqdm(*args, **kwargs)