ONNX Runtime
Direct ONNX model inference via ONNX Runtime 1.10 — no conversion to SameDiff required
ONNX Runtime
When to Use ONNX Runtime vs SameDiff Import
Requirement
Use ORT
Use SameDiff Import
Maven Dependency
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-onnxruntime</artifactId>
<version>${dl4j.version}</version>
</dependency>Basic Usage
Finding Input and Output Names
OnnxRuntimeRunner Builder Options
Batched Inference
Data Types
ND4J DataType
ONNX Tensor Type
Complete Example: Image Classification
Troubleshooting
Last updated
Was this helpful?