TransformerEncoderBlock class
Constructors
- TransformerEncoderBlock(int embedSize, int numHeads, int maxSeqLen)
Properties
Methods
-
forward(
Tensor x, List< Tensor> tracker) → Tensor -
x:
T, embedSize -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameters(
) → List< Tensor> -
override
-
step(
double lr) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
zeroGrad(
) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited