grelu.model.trunks.explainn#
Classes#
Convolutional block for the ExplaiNN model. |
|
The ExplaiNN model architecture. |
Module Contents#
- class grelu.model.trunks.explainn.ExplaiNNConvBlock(in_channels: int, out_channels: int, kernel_size: int, groups: int, act_func: str, dropout: float, dtype=None, device=None)[source]#
Bases:
torch.nn.Module
Convolutional block for the ExplaiNN model.
- Parameters:
in_channels – Number of input channels
out_channels – Number of output channels
kernel_size – Width of the convolutional kernel
groups – Number of groups for the convolutional layer
act_func – Activation function
dropout – Dropout rate
dtype – Data type for the layers.
device – Device for the layers.