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

Pytorch 1.8 and 1.9 compatibility #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jbojar
Copy link
Owner

@jbojar jbojar commented Aug 11, 2021

This version should be compatible with multiple PyTorch versions (it works at least on 1.6.0, 1.7.1, 1.8.1, 1.9.0).

This fix is based on suggestions from this comment zh217#15 (comment) by @SunnerLi and on existing but not fully working PR zh217#21 by @underdogliu.

My version does not use version checking during execution of dct calculation. Instead it tries to import new torch.fft module and conditionally defines three functions using either new or old implementation of FFT. This is done only once, when module is imported.

@jbojar jbojar force-pushed the pytorch-1.9.0-compatibility branch from d2f0005 to 0002278 Compare August 13, 2021 13:20
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

Successfully merging this pull request may close these issues.

1 participant