MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _rank

Method _rank

tensorflow/python/framework/ops.py:572–578  ·  view source on GitHub ↗

Integer rank of this Tensor, if known, else None. Returns: Integer rank or None

(self)

Source from the content-addressed store, hash-verified

570 return tuple(shape)
571
572 def _rank(self):
573 """Integer rank of this Tensor, if known, else None.
574
575 Returns:
576 Integer rank or None
577 """
578 return self.shape.ndims
579
580 def get_shape(self):
581 """Alias of Tensor.shape."""

Callers 5

_ConcatGradHelperFunction · 0.45
splitFunction · 0.45
_summarize_eagerFunction · 0.45
_num_presentFunction · 0.45
rankFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected