MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / inner

Function inner

tensorpack/utils/fs.py:52–56  ·  view source on GitHub ↗
(b, bsize, tsize=None)

Source from the content-addressed store, hash-verified

50 last_b = [0]
51
52 def inner(b, bsize, tsize=None):
53 if tsize is not None:
54 t.total = tsize
55 t.update((b - last_b[0]) * bsize)
56 last_b[0] = b
57 return inner
58 try:
59 with tqdm.tqdm(unit='B', unit_scale=True, miniters=1, desc=filename) as t:

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected