MCPcopy Create free account
hub / github.com/XuezheMax/flowseq / forward

Method forward

flownmt/modules/encoders/encoder.py:25–37  ·  view source on GitHub ↗

Encoding src sentences into src encoding representations. Args: src_sents: Tensor [batch, length] masks: Tensor or None [batch, length] Returns: Tensor1, Tensor2 Tensor1: tensor for src encoding [batch, length, hidden_size] Te

(self, src_sents, masks=None)

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