因为py文件名字被我命名成了onnxruntime.py与python库onnxruntime重名了,修改onnxruntime.py为onnxruntime_test.py再执行就好了。。。
AttributeError: module ‘onnxruntime‘ has no attribute ‘InferenceSession‘
最新推荐文章于 2024-05-18 18:17:38 发布
因为py文件名字被我命名成了onnxruntime.py与python库onnxruntime重名了,修改onnxruntime.py为onnxruntime_test.py再执行就好了。。。