-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'get_ctx' from 'torch.library' #195
Comments
is there something wrong with the torch? |
@candykilla have you solved it? If yes how? |
Just faced the same issue. Cell In[12], line 3 File c:\Users\pasca\AppData\Local\Programs\Python\Python311\Lib\site-packages\torchvision_init_.py:10 File c:\Users\pasca\AppData\Local\Programs\Python\Python311\Lib\site-packages\torchvision_meta_registrations.py:4 File c:\Users\pasca\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch_custom_ops.py:11 ImportError: cannot import name 'get_ctx' from 'torch.library' (c:\Users\pasca\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\library.py) |
Are you using a Jupyter Notebook? If so, what helped for me was simply restarting the kernel. The notebook was able to detect the installed package. |
what should I do ?
The text was updated successfully, but these errors were encountered: