EncoderDecoderTransformer class
A full Encoder-Decoder Transformer model for sequence-to-sequence tasks.
This model uses a TransformerEncoder to process the source sequence and a TransformerDecoder to generate the target sequence, leveraging cross-attention over the encoder's output.
Constructors
Properties
- decoder → TransformerDecoder
-
final
- encoder → TransformerEncoder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
forward(
List< int> sourceIdx, List<int> targetIdx) → List<ValueVector> - Forward pass for the Encoder-Decoder Transformer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameters(
) → List< Value> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
zeroGrad(
) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited