Open kyakuno opened 2 years ago
fft_rfftn がonnxエクスポートに対応していないため、エクスポートできない
RuntimeError: Exporting the operator fft_rfftn to ONNX opset version 12 is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub.
○ saicinpainting/training/modules/ffc.py
class FourierUnit(nn.Module):
...
def forward(self, x):
...
ffted = torch.fft.rfftn(x, dim=fft_dim, norm=self.fft_norm)
DefaultInpaintingTrainingModule ├── BaseInpaintingTrainingModule ├── generatoer = FFCResNetGenerator (saicinpainting/training/modules/ffc.py) ├── model = FFC_BN_ACT ├── ffc = FFC ├── convg2g = SpectralTransform ├── fe = FourieUnit
opset17でdftが入ったが、まだエクスポートには未対応。 https://github.com/pytorch/pytorch/blob/master/torch/onnx/symbolic_opset17.py
https://github.com/saic-mdal/lama