DualSqueezeExciteBlock#

class ctlearn.core.DualSqueezeExciteBlock(in_channels, ratio=16)[source]#

Bases: Module

A 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

forward(x)[source]#

Perform the forward pass of the neural network.

Parameters#

xtorch.Tensor

The input tensor.

Returns#

torch.Tensor

The output tensor after processing.