secure_load call verifies the .onnx file’s signature using tuc before
passing it to ort.InferenceSession. If the signature check fails, a
ModelVerificationError is raised and the model is never loaded.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Secure model verification for Roboflow ONNX models
import onnxruntime as ort
from thistle_secure_loader import secure_load
def onnx_loader(path: str):
return ort.InferenceSession(path)
session = secure_load("model.onnx", onnx_loader)
print("ONNX model verified.")
secure_load call verifies the .onnx file’s signature using tuc before
passing it to ort.InferenceSession. If the signature check fails, a
ModelVerificationError is raised and the model is never loaded.
onnxruntime>=1.15.0
