加载onnx模型显示AttributeError: module ‘onnx’ has no attribute ‘load’ 加载onnx模型显示AttributeError: module ‘onnx’ has no attribute ‘load’,查了好久发现自己的文件名为onnx.py,与代码中import onnx有冲突,导致onnx.load()中load()方法失效,改了文件名就能正常运行。