Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
65
def
_checkMD5(path, refMD5):
66
md5 = hashlib.md5(open(path,
"rb"
).read()).hexdigest()
67
return
md5 == refMD5
68
69
70
def
_createDirIfNeeded(path):
Callers
2
download
Function · 0.85
verifyChecksum
Function · 0.85
Calls
1
read
Method · 0.80
Tested by
no test coverage detected