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
[Inductor model breakage] Revert upstream commits in library loading (#2722)
These changes from upstream result in a breakage when loading external
library
```
61170: calling init: /opt/venv/lib/python3.12/site-packages/torchvision/_C.so
61170:
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Fatal Python error: Aborted
Current thread 0x00007f229fb36080 (most recent call first):
File "/usr/lib/python3.12/ctypes/__init__.py", line 379 in __init__
File "/pytorch/torch/_ops.py", line 1488 in load_library
File "/opt/venv/lib/python3.12/site-packages/torchvision/extension.py", line 34 in <module>
File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 995 in exec_module
File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
File "/opt/venv/lib/python3.12/site-packages/torchvision/__init__.py", line 9 in <module>
```
This was already reverted in rocm/7.1_internal_testing, need to
investigate whether upstream needs a fix
0 commit comments