DeepView.Profile icon indicating copy to clipboard operation
DeepView.Profile copied to clipboard

Error when running under PyTorch 2.1.0 - TORCH_LIBRARY single use

Open kornilich opened this issue 1 year ago • 6 comments

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

kornilich avatar Oct 08 '23 10:10 kornilich

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.

johncalesp avatar Oct 10 '23 17:10 johncalesp

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.

sascharo avatar Feb 26 '24 03:02 sascharo

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

johncalesp avatar Feb 26 '24 15:02 johncalesp

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

Awesome! Do you have an ETA?

sascharo avatar Feb 26 '24 16:02 sascharo

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

johncalesp avatar Feb 26 '24 17:02 johncalesp

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

johncalesp avatar Mar 06 '24 15:03 johncalesp