Bug: 显示warning信息,不影响运行
UserWarning: The function torch.ifft is deprecated and will be removed in a future PyTorch release. Use the new torch.fft module functions, instead, by importing torch.fft and calling torch.fft.ifft or torch.fft.ifftn. (Triggered internally at /opt/conda/conda-bld/pytorch_1607370117127/work/aten/src/ATen/native/SpectralOps.cpp:578.)
data = torch.ifft(data, 2, normalized=True)
解决方法:
import warnings
warnings.filterwarnings('ignore')