PyTorch-Onnx-Tensorrt icon indicating copy to clipboard operation
PyTorch-Onnx-Tensorrt copied to clipboard

module 'onnxruntime' has no attribute 'InferenceSession'

Open Tian14267 opened this issue 4 years ago • 1 comments

I use pip install onnxruntime-gpu , and I get this error:

module 'onnxruntime' has no attribute 'InferenceSession'

when I use: sess = onnxruntime.InferenceSession(model_path)

Tian14267 avatar Jul 01 '20 06:07 Tian14267

My onnxruntime version was '0.5.0'

What is your version?

Rapternmn avatar Jul 01 '20 08:07 Rapternmn