Returns the rank (i.e. the number of dimensions) of the tensor.
(self)
| 490 | return self.trt_tensor.shape[dim] |
| 491 | |
| 492 | def rank(self): |
| 493 | ''' |
| 494 | Returns the rank (i.e. the number of dimensions) of the tensor. |
| 495 | ''' |
| 496 | return len(self.trt_tensor.shape) |
| 497 | |
| 498 | def ndim(self): |
| 499 | ''' |
no outgoing calls