MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Bar

Class Bar

imperative/python/megengine/utils/http_download.py:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class Bar:
24 def __init__(self, total=100):
25 self._bar = tqdm(total=total, unit="iB", unit_scale=True, ncols=80)
26
27 def __call__(self, bytes_num):
28 self._bar.update(bytes_num)
29
30
31def download_from_url(url: str, dst: str):

Callers 1

download_from_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected