SHI-Labs / NATTEN

Neighborhood Attention Extension. Bringing attention to a neighborhood near you!
https://shi-labs.com/natten/
Other
363 stars 29 forks source link

Issues in windows with torch version 1.X.X. #148

Closed KangHyunwoogi closed 1 month ago

KangHyunwoogi commented 4 months ago

Hello, alihassanijr, Thanks for providing NATTEN.

I'm having trouble building natten on Windows, but my pytorch version is 1.11 and don't want to upgrade my torch version to 2.X.X. Is there any solution to build natten in case of torch version 1.X.X??

Thanks.

alihassanijr commented 4 months ago

Thank you; unfortunately we can't support all versions of torch, especially as older CUDA versions and architectures get deprecated, torch APIs changes, and the like.

Since building from source is the only option for Windows, you can try building it with an older torch build, but I highly suspect you'll run into issues with CUDA compatibility even if you override the checks on torch version.

You could revert back to our older versions though:

This commit is the only one I know supports Windows, and torch 1.8 and above (NATTEN never supported older torch versions). But note it's very old, and only has our naive backend, and no FNA.

alihassanijr commented 1 month ago

The issue appears to be resolved, so closing now. Feel free to reopen if you still have questions.