YDOOK:onnxruntime 加载和运行模型 InferenceSession
© ydook.com ydook.cn shiye.work

session = onnxruntime.InferenceSession('model.onnx')
outputs = session.run([output names], inputs)
通过 onnxruntime 的 InferenceSession 加载模型;
通过 session.run() 的调用运行 会话 session;
ONNX模型通过 session 定义和调用运行。