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

Method forward

fairseq/models/transformer.py:378–395  ·  view source on GitHub ↗

Args: prev_output_tokens (LongTensor): previous decoder outputs of shape `(batch, tgt_len)`, for teacher forcing encoder_out (Tensor, optional): output from the encoder, used for encoder-side attention incremental_state (di

(self, prev_output_tokens, encoder_out=None, incremental_state=None, **unused)

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