DualSqueezeExciteBlock#
- class ctlearn.core.pytorch.attention.DualSqueezeExciteBlock(in_channels, ratio=16)[source]#
Bases:
ModuleA channel & spatial (dual) squeeze-excite block in PyTorch. Concurrently applies channel and spatial scaling, then sums the results.
Methods Summary
forward(x)Perform the forward pass of the neural network.
Methods Documentation