xlstm_jax.models.xlstm_clean.blocks.xlstm_block#
Classes#
An xLSTM block can be either an sLSTM Block or an mLSTM Block. |
Module Contents#
- class xlstm_jax.models.xlstm_clean.blocks.xlstm_block.xLSTMBlockConfig#
-
- feedforward: xlstm_jax.models.xlstm_clean.components.feedforward.FeedForwardConfig | None = None#
- property _dtype: jax.numpy.dtype#
Returns the real dtype instead of the str from configs.
- Returns:
The jnp dtype corresponding to the string value.
- Return type:
- class xlstm_jax.models.xlstm_clean.blocks.xlstm_block.xLSTMBlock#
Bases:
flax.linen.ModuleAn xLSTM block can be either an sLSTM Block or an mLSTM Block.
It contains the pre-LayerNorms and the skip connections.
- config: xLSTMBlockConfig#