"""File hashing used by the calibrated inference loader.""" import hashlib from pathlib import Path def sha256(path): with Path(path).open("rb") as stream: return hashlib.file_digest(stream, "sha256").hexdigest()