Returns the rank (i.e. the number of dimensions) of the tensor.
(self)
| 496 | return len(self.trt_tensor.shape) |
| 497 | |
| 498 | def ndim(self): |
| 499 | ''' |
| 500 | Returns the rank (i.e. the number of dimensions) of the tensor. |
| 501 | ''' |
| 502 | return self.rank() |
| 503 | |
| 504 | def split(self, split_size_or_sections, dim=0): |
| 505 | ''' |
no test coverage detected