> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thistle.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Roboflow ONNX

> Secure model verification for Roboflow ONNX models

ONNX models exported from Roboflow can be verified before creating an inference
session with the
[secure loader](/update/get_started/secure_model_verification#secure-loader-module-thistle_secure_loaderpy):

```python theme={"dark"}
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.")
```

The `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.

### Requirements

```txt theme={"dark"}
onnxruntime>=1.15.0
```
