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

Method extract_features

fairseq/models/transformer.py:397–453  ·  view source on GitHub ↗

Similar to *forward* but only return features. 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, incremental_state=None, **unused)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.95

Calls 1

buffered_future_maskMethod · 0.95

Tested by

no test coverage detected