ResBlock1D

class aixd.mlmodel.architecture.blocks.ResBlock1D(*args: Any, **kwargs: Any)[source]

Bases: ResBlockConv

Module implementing a 1D convolutional residual block.

Parameters:
  • in_channels (int) – The number of input channels.

  • out_channels (int) – The number of output channels.

  • scaling (str, optional, default=None) – The scaling mode to use. One of ‘down’ (reduce dimensionality), ‘up’ (increase dimensionality), or None (no change in dimensionality).

  • activation (Union[nn.Module, str], optional, default=’leaky_relu’) – The activation function to use

  • up_padding (Tuple[int], optional, default=(2, 2)) – The padding to use for upsampling.

Inherited Methods