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

Method forward

fairseq/models/lightconv.py:213–250  ·  view source on GitHub ↗

Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` Returns: dict: - **encoder_out** (Tensor): the last encoder layer's output of shape `(src_len, batch, embed_dim)`

(self, src_tokens, **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