Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct { nn.BaseModel Config bartconfig.Config SelfAttention *multiheadattention.Model SelfAttentionLayerNorm *layernorm.Model FFN *stack.Model LayerNorm *layernorm.Model }
Layer implements a BART encoder layer.
func NewLayer ¶
func NewLayer(config bartconfig.Config) *Layer
NewLayer returns a new BART encoder Layer.
type Model ¶
type Model struct { nn.BaseModel Config bartconfig.Config Layers *stack.Model LearnedPositionalEmbeddings *posembeddings.LearnedPositionalEmbeddings EmbeddingLayerNorm *layernorm.Model LayerNorm *layernorm.Model }
Model implements a BART encoder.
Click to show internal directories.
Click to hide internal directories.