AttributeError: module 'torch.fft' has no attribute 'rfft2'
1648027181 opened this issue · comments
chengpeng commented
x2 = torch.fft.rfft2(x2, dim=(2, 3), norm='ortho')
AttributeError: module 'torch.fft' has no attribute 'rfft2'
Yongming Rao commented
Hi @1648027181, thanks for your interest in our work. To use torch.fft.rfft2
, you need to upgrade PyTorch to 1.8 or a later version. Besides, it is necessary to import both torch
and torch.fft
like
Lines 2 to 7 in d3ae1bb