Open vansin opened 1 year ago
Honestly, I don't know. The log comes from pybind11 and I am not a pro at that.
PyTorch would call the symbolic method in torch._C._jit_pass_onnx
https://github.com/pytorch/pytorch/blob/bdc9911575277848ccac56b344dd624aa97fb87d/torch/csrc/jit/passes/onnx.cpp#L544
Which would load the method through pybind11. I guess the debugger/tracer broke something, but I have no idea how to fix it. It would be a good idea to send an issue to PyTorch, they might have a fix.
Checklist
Describe the bug
Debug在symbolic函数中打断点时会报错, 如果不在symbolic函数打断点将会成功转换。 Debug will report an error if you break the point in the symbolic function, if you don't break the point in the symbolic function, the conversion will be successful.
Environment
Error traceback
No response