IQA-optimization icon indicating copy to clipboard operation
IQA-optimization copied to clipboard

torch.rfft has changed

Open Amaya-aisi opened this issue 3 years ago • 4 comments

wrong: module 'torch' has no attribute 'rfft' pytorch :1.8.1+cu101

Amaya-aisi avatar Apr 26 '21 00:04 Amaya-aisi

if s == 0:
          EM_n = torch.sum(filter**2,dim=[1,2,3])
          maxAn = An
else:
          maxAn = torch.max(maxAn,An)

Is this maxAN meaningless? wrong:"maximum_cpu" not implemented for 'ComplexFloat'

Amaya-aisi avatar Apr 26 '21 02:04 Amaya-aisi

looks like it works with the following config.

pip3 install torch==1.7.1 torchvision==0.8.0

malleshamdasari avatar Apr 20 '22 15:04 malleshamdasari

you may change 'torch.rfft' as 'torch.fft.rfft'

yrj1409 avatar Jun 02 '22 00:06 yrj1409

if s == 0:
          EM_n = torch.sum(filter**2,dim=[1,2,3])
          maxAn = An
else:
          maxAn = torch.max(maxAn,An)

Is this maxAN meaningless? wrong:"maximum_cpu" not implemented for 'ComplexFloat'

I had the same problem, did you solve it?

xukun12138 avatar Jul 05 '22 08:07 xukun12138