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

Method forward

fairseq/models/fconv.py:188–268  ·  view source on GitHub ↗

Args: src_tokens (LongTensor): tokens in the source language of shape `(batch, src_len)` src_lengths (LongTensor): lengths of each source sentence of shape `(batch)` Returns: dict: - **encoder_out**

(self, src_tokens, src_lengths)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

padMethod · 0.80
fc1Method · 0.45
fc2Method · 0.45

Tested by

no test coverage detected