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

Method _num_elements

tensorflow/python/framework/ops.py:978–989  ·  view source on GitHub ↗

Number of elements of this Tensor. Unlike regular Tensors, the number of elements is always known for EagerTensors. This is more performant than tensor.shape.num_elements Returns: Long - num elements in the tensor

(self)

Source from the content-addressed store, hash-verified

976 raise NotImplementedError()
977
978 def _num_elements(self):
979 """Number of elements of this Tensor.
980
981 Unlike regular Tensors, the number of elements is always known for
982 EagerTensors.
983
984 This is more performant than tensor.shape.num_elements
985
986 Returns:
987 Long - num elements in the tensor
988 """
989 raise NotImplementedError()
990
991 def _copy_to_device(self, device_name): # pylint: disable=redefined-outer-name
992 raise NotImplementedError()

Callers 1

putMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected