MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / main

Function main

samples/python/downloader.py:182–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180
181
182def main():
183 data, args = _parseArgs()
184 logging.basicConfig()
185 logger.setLevel(logging.INFO)
186
187 ret = True
188 if args.verify:
189 ret = verifyChecksum(data, args.file)
190 else:
191 ret = download(data, args.file, args.overwrite)
192
193 if not ret:
194 # Error of downloading or checksum
195 sys.exit(1)
196
197
198if __name__ == "__main__":

Callers 1

downloader.pyFile · 0.70

Calls 3

_parseArgsFunction · 0.85
verifyChecksumFunction · 0.85
downloadFunction · 0.85

Tested by

no test coverage detected