Returns: True if the tensor is empty according to its shape
(self)
| 175 | return self.data.nDim() |
| 176 | |
| 177 | def is_empty(self): |
| 178 | ''' |
| 179 | Returns: |
| 180 | True if the tensor is empty according to its shape |
| 181 | ''' |
| 182 | return self.ndim() == 0 |
| 183 | |
| 184 | def is_transpose(self): |
| 185 | ''' |