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

Method forward

fairseq/models/fairseq_decoder.py:19–34  ·  view source on GitHub ↗

Args: prev_output_tokens (LongTensor): shifted output tokens of shape `(batch, tgt_len)`, for teacher forcing encoder_out (dict, optional): output from the encoder, used for encoder-side attention Returns: tuple:

(self, prev_output_tokens, encoder_out=None, **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

extract_featuresMethod · 0.95
output_layerMethod · 0.95

Tested by

no test coverage detected