MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / forward

Method forward

fairseq/models/fairseq_model.py:198–223  ·  view source on GitHub ↗

Run the forward pass for an encoder-decoder model. First feed a batch of source tokens through the encoder. Then, feed the encoder output and previous decoder outputs (i.e., teacher forcing) to the decoder to produce the next outputs:: encoder_out = sel

(self, src_tokens, src_lengths, prev_output_tokens, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

encoderMethod · 0.80
decoderMethod · 0.45

Tested by

no test coverage detected