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

Method forward

fairseq/modules/lightweight_convolution.py:130–146  ·  view source on GitHub ↗

Assuming the input, x, of the shape T x B x C and producing an output in the shape T x B x C args: x: Input of shape T x B x C, i.e. (timesteps, batch_size, input_size) incremental_state: A dict to keep the state unfold: unfold the input or not. If not, we

(self, x, incremental_state=None, unfold=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_forward_unfoldedMethod · 0.95
_forward_expandedMethod · 0.95

Tested by

no test coverage detected