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

Method extract_features

fairseq/models/fairseq_decoder.py:36–43  ·  view source on GitHub ↗

Returns: tuple: - the decoder's features of shape `(batch, tgt_len, embed_dim)` - a dictionary with any model-specific outputs

(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 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected