Thank you for your contribution on this work and share it!
The FFTConv2d layer is much faster than torch.nn.Conv2d in normal case. However, when I use depthwise convolution by adding groups=channel to the function, it becomes very slow, and even slower than normal convolution. How can I improve it?
Test case refers to the README.md, and batch_size=8, kernel_size=31, padding=15.
Dear Author:
Thank you for your contribution on this work and share it!
The FFTConv2d layer is much faster than torch.nn.Conv2d in normal case. However, when I use depthwise convolution by adding
groups=channel
to the function, it becomes very slow, and even slower than normal convolution. How can I improve it?Test case refers to the README.md, and batch_size=8, kernel_size=31, padding=15.
Normal convolution result:
Depthwise convolution result:
My test code is: