Transformers¤
Module: generative_models.core.layers.transformers
Source: generative_models/core/layers/transformers.py
Overview¤
Transformer implementation with flexible positional encodings - FINAL CORRECTED VERSION.
This module provides transformer encoder and decoder implementations that support various types of positional encodings using the latest Flax NNX API.
Classes¤
FeedForwardNetwork¤
TransformerDecoder¤
TransformerDecoderBlock¤
TransformerEncoder¤
TransformerEncoderBlock¤
Functions¤
call¤
call¤
call¤
call¤
call¤
init¤
init¤
init¤
init¤
init¤
create_attention_mask¤
create_transformer¤
Module Statistics¤
- Classes: 5
- Functions: 12
- Imports: 6