Documentation
¶
Overview ¶
Package startransformer provides a variant implementation of the Star-Transformer model introduced by Qipeng Guo, Xipeng Qiu et al. in "Star-Transformer", 2019 (https://www.aclweb.org/anthology/N19-1133.pdf). In this implementation, the Scaled Dot Product Attention is replaced by a Linear Attention.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { nn.BaseModel Config Query *linear.Model Key *linear.Model Value *linear.Model RelayQuery *linear.Model RelayKey *linear.Model RelayValue *linear.Model SatelliteNorm *layernorm.Model RelayNorm *layernorm.Model }
Model contains the serializable parameters.
Click to show internal directories.
Click to hide internal directories.