Gets the total dataset size (number of elements). Returns: An integer denoting the number of elements in the dataset.
(self)
| 143 | |
| 144 | @property |
| 145 | def size(self): |
| 146 | """Gets the total dataset size (number of elements). |
| 147 | |
| 148 | Returns: |
| 149 | An integer denoting the number of elements in the dataset. |
| 150 | """ |
| 151 | return np.prod(self.shape) |
| 152 | |
| 153 | @staticmethod |
| 154 | def _to_type_spec(value): |
no outgoing calls