import torch
torch.fft.fftn(torch.Tensor(im2),(-2,-1))
上面的调用方式就会报错:

需要显式的引入torch.fft才行:
import torch.fft
torch.fft.fftn(torch.Tensor(im2),(-2,-1))
import torch
torch.fft.fftn(torch.Tensor(im2),(-2,-1))
上面的调用方式就会报错:

需要显式的引入torch.fft才行:
import torch.fft
torch.fft.fftn(torch.Tensor(im2),(-2,-1))
3万+
1040

被折叠的 条评论
为什么被折叠?
>