Skip to content
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

Error when running under PyTorch 2.1.0 - TORCH_LIBRARY single use #66

Open
kornilich opened this issue Oct 8, 2023 · 6 comments
Open

Comments

@kornilich
Copy link

Tested on examples/testnet

Error:
-> RuntimeError: Only a single TORCH_LIBRARY can be used to register the namespace _inductor_test; please put all of your definitions in a single TORCH_LIBRARY block. If you were trying to specify implementations, consider using TORCH_LIBRARY_IMPL (which can be duplicated). If you really intended to define operators for a single namespace in a distributed way, you can use TORCH_LIBRARY_FRAGMENT to explicitly indicate this. Previous registration of TORCH_LIBRARY was registered at /dev/null:241; latest registration was registered at /dev/null:241
-> This error occurred on line 27 when processing entry_point.py.

However, it works on PyTorch 2.0.1

@johncalesp
Copy link
Contributor

johncalesp commented Oct 10, 2023

Hello, thank you for open this issue.
Pytorch recently changed their version and that created some conflicts, temporarily we are compatible up until version 2.0.1.
We will look into it with more detail.
If you find any more issues or features that will be useful please let us know.
Thank you.

@sascharo
Copy link

How does it look with the compatibility of PyTorch 2.2.1? It seems deepview-profile 0.13.3 is still limited to PyTorch <= 2.0.1.

@johncalesp
Copy link
Contributor

Hi @sascharo ,
We are currently working on a new release that will be compatible with the latest version of pytorch.

@sascharo
Copy link

We are currently working on a new release that will be compatible with the latest version of pytorch.

Awesome! Do you have an ETA?

@johncalesp
Copy link
Contributor

We are running some test before we release to pypi, I would say a couple of weeks from now

@johncalesp
Copy link
Contributor

Hello @sascharo ,
We released the new version, now it works with the latest version of pytorch.
Let us know what you think, thanks!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants