MultiHeadCrossAttention class
Combines multiple cross-attention heads to run in parallel.
Constructors
- MultiHeadCrossAttention(int numHeads, int decoderEmbedSize, int encoderEmbedSize)
Properties
Methods
-
forward(
List< ValueVector> x_decoder, List<ValueVector> x_encoder) → List<ValueVector> - Forward pass for Multi-Head Cross Attention.
-
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