Get Started
Advanced Materials
API Reference
Notes
Misc
dgl.data.utils.
check_sha1
Check whether the sha1 hash of the file content matches the expected hash.
Codes borrowed from mxnet/gluon/utils.py
filename (str) β Path to the file.
sha1_hash (str) β Expected sha1 hash in hexadecimal digits.
Whether the file content matches the expected hash.
bool