Views
No views yet
U+10C00 – U+10C4A)ort crate)1use ort::session::Session;
2
3let session = Session::builder()?
4 .commit_from_file("gokturk_resnet_v1.onnx")?;onnxruntime)1import onnxruntime as ort
2import numpy as np
3
4session = ort.InferenceSession("gokturk_resnet_v1.onnx")
5# Expects a 64x64 grayscale image normalized to [0, 1]
6# input_data shape: (1, 64, 64, 1)
7result = session.run(None, {"input_1": input_data})