MCPcopy Create free account
hub / github.com/tensorflow/lingvo / _CreateCanvasAndTargets

Method _CreateCanvasAndTargets

lingvo/tasks/mt/model.py:266–342  ·  view source on GitHub ↗

Create the canvas and targets. Args: batch: A `.NestedMap`. - src: A `.NestedMap`. - ids: The source ids, ends in . - paddings: The source paddings. - tgt: A `.NestedMap`. - ids: The target ids, ends in . - paddings: The

(self, batch)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ComputePredictionsMethod · 0.95

Calls 1

Tested by 1