MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / print_progress

Function print_progress

netdissect/progress.py:69–77  ·  view source on GitHub ↗

When within a progress loop, post_progress(k=str) will display the given k=str status on the right-hand-side of the progress status bar. If not within a visible progress bar, does nothing.

(*args)

Source from the content-addressed store, hash-verified

67 innermost.set_description(desc)
68
69def print_progress(*args):
70 '''
71 When within a progress loop, post_progress(k=str) will display
72 the given k=str status on the right-hand-side of the progress
73 status bar. If not within a visible progress bar, does nothing.
74 '''
75 if default_verbosity:
76 printfn = print if tqdm is None else tqdm.write
77 printfn(' '.join(str(s) for s in args))
78
79def default_progress(verbose=None, iftop=False):
80 '''

Callers 3

eval_loss_and_regFunction · 0.90
mainFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected