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)
| 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() |