-
Notifications
You must be signed in to change notification settings - Fork 72
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
module 'torch' has no attribute 'rfft' #26
Comments
'torch.rfft' is removed after torch1.9 |
if you can read Chinese, here is the solution: |
Found the solution hidden in another post: #15 (comment) To migrate the DCT code to the newest pytorch version, you only have to change two lines; one in dct, one in idct. dct:
idct:
Took me wayyy too long to figure out. Hope it helps you! |
Thanks for the solution @MaloShady . |
This can be closed now. Fixed in PR #24 |
When I try to run the example, I get a runtime error
my torch version is '1.10.2+cu113'. Did I miss something?
Also, I want to ask what is scaled DCT? Does the input of scaled DCT need to be in range [0,1]?
Thank you very much!
The text was updated successfully, but these errors were encountered: