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

Function _checkMD5

samples/python/downloader.py:65–67  ·  view source on GitHub ↗
(path, refMD5)

Source from the content-addressed store, hash-verified

63
64
65def _checkMD5(path, refMD5):
66 md5 = hashlib.md5(open(path, "rb").read()).hexdigest()
67 return md5 == refMD5
68
69
70def _createDirIfNeeded(path):

Callers 2

downloadFunction · 0.85
verifyChecksumFunction · 0.85

Calls 1

readMethod · 0.80

Tested by

no test coverage detected