Implementation of 1D, 2D, and 3D FFT convolutions in PyTorch. Current version 1.2.0, supports padding='same' and half-precision input. Release cadence is irregular; latest updates in 2023.
pip install fft-conv-pytorchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a 2D FFT convolutional layer with 'same' padding and run a forward pass.
Upgrade PyTorch to >= 1.8.
Ensure your code does not rely on gradient computation via einsum; re-implement custom operations if needed.
Upgrade to 1.2.0 or use padding='valid' and full-precision tensors.
Ensure you have installed fft-conv-pytorch and use: from fft_conv_pytorch import FFTConv2d
Move both input and model to the same device, e.g., conv.to(device) and x = x.to(device).
Set padding='valid' or padding='same' (supported from v1.2.0+).