MCPcopy Create free account
hub / github.com/apache/singa / do_download

Function do_download

examples/cpp/cifar10/download_data.py:48–54  ·  view source on GitHub ↗
(dirpath, gzfile, url)

Source from the content-addressed store, hash-verified

46
47
48def do_download(dirpath, gzfile, url):
49 if check_dir_exist(dirpath):
50 sys.exit(0)
51 print('Downloading CIFAR10 from %s' % (url))
52 urllib.request.urlretrieve(url, gzfile)
53 extract_tarfile(gzfile)
54 print('Finished!')
55
56
57if __name__ == '__main__':

Callers 1

download_data.pyFile · 0.70

Calls 2

check_dir_existFunction · 0.85
extract_tarfileFunction · 0.70

Tested by

no test coverage detected