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

Method reconstruct_error

flownmt/flownmt.py:489–508  ·  view source on GitHub ↗

Args: src_sents: Tensor [batch, src_length] tensor for source sentences tgt_sents: Tensor [batch, tgt_length] tensor for target sentences src_masks: Tensor [batch, src_length] or None tensor for source mask

(self, src_sents: torch.Tensor, tgt_sents: torch,
                          src_masks: torch.Tensor, tgt_masks: torch.Tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

pretrain_modelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected