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

Function HasRank

lingvo/core/py_utils.py:388–399  ·  view source on GitHub ↗

Syntactic sugar for asserting that tensor has the expected rank.

(tensor: tf.Tensor, expected_rank)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

ComputeGradientsFunction · 0.85
GetVarFunction · 0.85
LpGradFunction · 0.85
PadSequenceDimensionFunction · 0.85
PadSequenceToFunction · 0.85
LengthsFromPaddingsFunction · 0.85
PaddingsFromLengthsFunction · 0.85
TrimTrailingPaddingsFunction · 0.85
PadOrTrimToFunction · 0.85
MultiTaskProjectionFunction · 0.85

Calls 2

with_dependenciesFunction · 0.85
rankMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…