ChannelSqueezeExciteBlock#

class ctlearn.core.pytorch.attention.ChannelSqueezeExciteBlock(in_channels, ratio=4)[source]#

Bases: Module

A channel-wise squeeze-excite (cSE) block in PyTorch.

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.