phernst / pytorch_radon

Pytorch implementation of scikit-image's radon function and more
MIT License
25 stars 11 forks source link

I can't find attribute torch.rfft #4

Closed LimChaeYeon1003 closed 2 years ago

LimChaeYeon1003 commented 2 years ago

I got this error while use iradon function. The running environment is pytorch 1.9.0 May I ask how to deal with this problem?

error message:[AttributeError: module 'torch' has no attribute 'rfft' with PyTorch(https://dtuto.com/questions/2526/attributeerror-module-torch-has-no-attribute-rfft-with-pytorch)]

phernst commented 2 years ago

I haven't updated the master branch for quite a while. torch.rfft has been replaced with torch.fft.rfft since pytorch 1.7.

Please check out the torch17 branch and let me know if it works.

LimChaeYeon1003 commented 2 years ago

I haven't updated the master branch for quite a while. torch.rfft has been replaced with torch.fft.rfft since pytorch 1.7.

Please check out the torch17 branch and let me know if it works.

solved the problem thank you for recommend