PyTorch-Encoding icon indicating copy to clipboard operation
PyTorch-Encoding copied to clipboard

Package has issues with Pytorch 1.10

Open codtiger opened this issue 3 years ago • 2 comments

Hi,

As I was configuring different combinations of pytorch and CUDA I realized if your device's current nvvc version and torch's compiled cuda version differ- which is totally ok for torch itself since you can run any code on the new cuda 11.5 machines while torch lags behind at 11.3 - you will receive an error for mismatched versions for installing extensions through distutils and cppextensions.

Of course I realize reverting the torch version back to 1.9 is totally fine and you can easily install the package. Any plans for a change in the structure of extensions(Sorry I am not familiar how exactly you could bypass this mismatch issue).

codtiger avatar Dec 17 '21 20:12 codtiger

Thanks for the feedback. I haven't used this library for a while and don't have plan to maintain it. Feel free to send a PR if you found a solution.

zhanghang1989 avatar Feb 28 '22 01:02 zhanghang1989

Made a pull request with the fix (tested on multiple pytorch versions on my end)

krrish94 avatar Dec 07 '22 04:12 krrish94