DepthwiseSeparableConv2d
Depthwise Separable Convolution layer.
This layer applies a depthwise convolution followed by a pointwise convolution. It's more efficient than standard convolution as it reduces the number of parameters and computational complexity while maintaining similar representational power.
The operation is split into two parts:
Depthwise convolution: applies a single filter per input channel (groups = inChannels)
Pointwise convolution: 1x1 convolution to combine the depthwise outputs
Parameters
Number of input channels
Number of output channels/filters
Size of the convolving kernel for depthwise convolution (height, width)
Stride of the convolution (default: 1, 1)
Padding added to all sides of the input (default: 0, 0)
Spacing between kernel elements (default: 1, 1)
Whether to add learnable bias to both depthwise and pointwise layers (default: true)
Name of the module
Initial weights for depthwise convolution
Initial weights for pointwise convolution
Initial bias for depthwise convolution (if bias is true)
Initial bias for pointwise convolution (if bias is true)