Forward intermediates of one encode pass, required by the backward pass.
Cache
01 Syntax
Microsoft.VisualBasic.MachineLearning.Transformer.EncoderLayer.Cache
02 Fields
| Name | Overloads | Summary |
|---|---|---|
| Input | 2 | The input of this layer. |
| AttentionOutput | 2 | Output of the self attention sub layer. |
| AttentionDropped | 2 | Self attention output after dropout. |
| Normalized1 | 2 | Result of the first AddNorm. |
| Norm1Mean | 2 | Mean used by the first layer normalization. |
| Norm1InvStd | 2 | Inverse standard deviation used by the first layer normalization. |
| FeedForwardOutput | 2 | Output of the feed forward sub layer. |
| FeedForwardDropped | 2 | Feed forward output after dropout. |
| Norm2Mean | 2 | Mean used by the second layer normalization. |
| Norm2InvStd | 2 | Inverse standard deviation used by the second layer normalization. |
| DropoutApplied | 2 | Indicates whether dropout was applied during this pass. |
| MhaCache | 2 | Forward cache snapshot of the self attention sub layer. |
| FfCache | 2 | Forward cache snapshot of the feed forward sub layer. |
03 Members
Input
The input of this layer.
AttentionOutput
Output of the self attention sub layer.
AttentionDropped
Self attention output after dropout.
Normalized1
Result of the first AddNorm.
Norm1Mean
Mean used by the first layer normalization.
Norm1InvStd
Inverse standard deviation used by the first layer normalization.
FeedForwardOutput
Output of the feed forward sub layer.
FeedForwardDropped
Feed forward output after dropout.
Norm2Mean
Mean used by the second layer normalization.
Norm2InvStd
Inverse standard deviation used by the second layer normalization.
DropoutApplied
Indicates whether dropout was applied during this pass.
MhaCache
Forward cache snapshot of the self attention sub layer.
FfCache
Forward cache snapshot of the feed forward sub layer.
Input
AttentionOutput
AttentionDropped
Normalized1
Norm1Mean
Norm1InvStd
FeedForwardOutput
FeedForwardDropped
Norm2Mean
Norm2InvStd
DropoutApplied
MhaCache
FfCache