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

Function GetRank

lingvo/core/py_utils.py:417–430  ·  view source on GitHub ↗

Returns tensor's rank as an int if it's available, otherwise a Tensor. Args: tensor: The input tensor. Returns: Either an int or a Tensor for the rank of the input tensor.

(tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

AddVNFunction · 0.85
ExpandToFunction · 0.85
CumSumFunction · 0.85
ProjectLastDimFunction · 0.85
MergeDuplicateIdsFunction · 0.85
MultiTaskProjectionFunction · 0.85

Calls 1

rankMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…