You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I am trying to run a code which needs to import torch and tvm packages. When I do
import torch
import tvm
The program works just fine, but if I change the order to
import tvm
import torch
The code breaks with inside the torch tracing function:
libc++abi: terminating with uncaught exception of type pybind11::stop_iteration:
Fatal Python error: Aborted
I found out that the error occurs when the torch tries to iterate through a Dict.
I build torch with libstdcpp and tvm with libcpp. Can this be the cause of this problem?
I cannot build tvm with libstdcpp. I tried installing torch with libcpp but I still get the same error. When I get dir on the Dict variable which is casusing the error, I see pybind11_module_local_v4_clang_libstdcpp_cxxabi1002. So, it seems that pybind11 is still using libstdcpp.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to run a code which needs to import torch and tvm packages. When I do
The program works just fine, but if I change the order to
The code breaks with inside the torch tracing function:
libc++abi: terminating with uncaught exception of type pybind11::stop_iteration:
Fatal Python error: Aborted
I found out that the error occurs when the torch tries to iterate through a Dict.
I build torch with libstdcpp and tvm with libcpp. Can this be the cause of this problem?
I cannot build tvm with libstdcpp. I tried installing torch with libcpp but I still get the same error. When I get dir on the Dict variable which is casusing the error, I see pybind11_module_local_v4_clang_libstdcpp_cxxabi1002. So, it seems that pybind11 is still using libstdcpp.
Beta Was this translation helpful? Give feedback.
All reactions