mr2.nn.ResBlock
- class mr2.nn.ResBlock[source]
-
Residual convolution block with two convolutions.
- __init__(n_dim: int, n_channels_in: int, n_channels_out: int, cond_dim: int) None[source]
Initialize the ResBlock.
- Parameters:
n_dim (
int) – The number of dimensions, i.e. 1, 2 or 3.n_channels_in (
int) – The number of channels in the input tensor.n_channels_out (
int) – The number of channels in the output tensor.cond_dim (
int) – The number of features in the conditioning tensor used in a FiLM. If set to 0 no FiLM is used.