onnx2torch
onnx2torch copied to clipboard
Circular import
Hi I installed the newest package, but have the following error:
from onnx2torch import convert ImportError: cannot import name 'convert' from partially initialized module 'onnx2torch' (most likely due to a circular import)
What's wrong with me?
Hello, I met the same issue and successfully solved it. The reason for "circular import" is that the name of my py file is "onnx2torch", but the model's name is onnx2torch, so they are in conflict. Maybe you should check you file name : )