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

Method forward

fairseq/models/masked_lm.py:193–244  ·  view source on GitHub ↗

Forward pass for Masked LM encoder. This first computes the token embedding using the token embedding matrix, position embeddings (if specified) and segment embeddings (if specified). Here we assume that the sentence representation corresponds to the output

(self, src_tokens, segment_labels=None, **unused)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected