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

Function PadSequenceTo

lingvo/core/py_utils.py:4329–4365  ·  view source on GitHub ↗

Pads `xs` and `padding` to `length` using `pad_val` along the 2nd dim. Pads `xs` to `length` using `pad_val`, and `padding` using 1. Raise error if `x.shape[:2]` and `padding.shape` are not the same. Args: xs: A Tensor or a list of Tensors of shape [batch, seqlen] or [batch, seqlen

(xs, padding, length, pad_val)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

GetShapeFunction · 0.85
HasRankFunction · 0.85
HasShapeFunction · 0.85
PadSequenceDimensionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…