Constructor OnnxModelFile
OnnxModelFile(string, OnnxModelFileRole, long, string)
One file a model needs on disk.
public OnnxModelFile(string RelativePath, OnnxModelFileRole Role, long SizeBytes, string Sha256)
Parameters
RelativePathstringThe path under the model directory, always with forward slashes: it is the same string the Hugging Face URL carries.
RoleOnnxModelFileRoleWhat the file is for.
SizeByteslongThe exact size, used by the fast path and by the free-disk check.
Sha256stringLowercase hex. On Hugging Face that is the git-LFS
oid- never thexetHashthose Xet-backed repos also return.