oa::ml::nn::EncoderDecoderBlock
One pre-normalized decoder block of an encoder-decoder EncoderDecoder. Applies causal self-attention, bidirectional cross-attention over the encoder output, and a dense GELU feed-forward stage, each behind a pre-norm residual. The cross-attention stage projects its keys and values from the encoder output on every call, so the same block also serves training and uncached evaluation.
Declaration
pub struct EncoderDecoderBlock { /* private fields */ }Public Rust declaration.
Public Methods
Associated Functions
Public Method Documentation
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
Construct the canonical decoder block with causal self-attention and bidirectional cross-attention. Errors Returns an error for invalid dimensions or failed child construction.
Construct the canonical decoder block with causal self-attention and bidirectional cross-attention. Errors Returns an error for invalid dimensions or failed child construction.
Construct the canonical decoder block with causal self-attention and bidirectional cross-attention. Errors Returns an error for invalid dimensions or failed child construction.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
No public source comment is attached to this declaration.
Construct the canonical decoder block with causal self-attention and bidirectional cross-attention. Errors Returns an error for invalid dimensions or failed child construction.