channel_squeeze_excite_block#

ctlearn.core.channel_squeeze_excite_block(inputs, ratio=4, name=None)[source]#

A channel-wise squeeze-excite block.

This function creates a channel-wise squeeze-excite block that recalibrates the importance of each channel by using global average pooling followed by two dense layers.

Parameters#

inputskeras.layers.Layer

Input tensor to the squeeze-excite block.

ratioint

Reduction ratio for the squeeze-excite block. Default is 4.

namestr, optional

Name for the squeeze-excite block. Default is None.

Returns#

keras.layers.Layer

Output tensor for the channel squeeze-excite block.