Documentation ¶
Overview ¶
Package mlpmixer implements the MLP-Mixer (Tolstikhin et al., 2021).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { InputSize int HiddenSizeTokenMixer int HiddenSizeChannelMixer int Channels int ActFunctionTokenMixer activation.Activation ActFunctionChannelMixer activation.Activation Eps float64 }
Config provides configuration settings for a MixerBlock.
type FeedForward ¶
type FeedForward struct { nn.Module Layers nn.ModuleList[nn.StandardModel] }
FeedForward is the model for feed-forward operations of a MixerBlock.
type MixerBlock ¶
type MixerBlock struct { nn.Module Config TokenLayerNorm *layernorm.Model TokenMixerFF *FeedForward ChannelLayerNorm *layernorm.Model ChannelMixerFF *FeedForward }
MixerBlock contains the serializable parameters.
Click to show internal directories.
Click to hide internal directories.