xlstm_jax.models.xlstm_pytorch.components.feedforward#
Attributes#
Classes#
Functions#
|
|
|
Module Contents#
- xlstm_jax.models.xlstm_pytorch.components.feedforward._act_fn_registry#
- xlstm_jax.models.xlstm_pytorch.components.feedforward.get_act_fn(act_fn_name)#
- Parameters:
act_fn_name (str)
- Return type:
- class xlstm_jax.models.xlstm_pytorch.components.feedforward.FeedForwardConfig#
Bases:
xlstm_jax.models.xlstm_pytorch.utils.UpProjConfigMixin- ff_type: Literal['ffn_gated'] = 'ffn_gated'#
- class xlstm_jax.models.xlstm_pytorch.components.feedforward.GatedFeedForward(config)#
Bases:
torch.nn.Module- Parameters:
config (FeedForwardConfig)
- config_class#
- config#
- proj_up#
- proj_down#
- act_fn#
- dropout#
- forward(x)#
- Parameters:
x (torch.Tensor)
- Return type:
- reset_parameters()#
- xlstm_jax.models.xlstm_pytorch.components.feedforward.create_feedforward(config)#
- Parameters:
config (FeedForwardConfig)
- Return type: