Documentation ¶
Overview ¶
Package syntheticattention provides an implementation of the Synthetic Attention described in: "SYNTHESIZER: Rethinking Self-Attention in Transformer Models" by Tay et al., 2020. (https://arxiv.org/pdf/2005.00743.pdf)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextProb ¶
type ContextProb struct { // Context encodings. Context []ag.Node // Prob attention scores. Prob []mat.Matrix }
ContextProb is a pair of Context encodings and Prob attention scores.
Click to show internal directories.
Click to hide internal directories.