Documentation
¶
Overview ¶
Package bart implements the transformer model introduced by Mike et al., 2019. "BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension" https://arxiv.org/abs/1910.13461
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 config.Config Embeddings *embeddings.Model Encoder *encoder.Model Decoder *decoder.Model }
Model implements a BART model.
func (*Model) Decode ¶ added in v0.5.0
func (m *Model) Decode( inputIDs []int, encoderHiddenStates []ag.Node, pastKeysValuesPairs decoder.KeysValuesPairs, ) ([]ag.Node, decoder.KeysValuesPairs)
Decode performs the BART decoding.
Click to show internal directories.
Click to hide internal directories.