get_shape
Function
Obtains the shape of a tensor object.
C++ Prototype
const std::vector<int64_t> &GetShape() const
Python Prototype
get_shape()
Parameters
None
Usage Example
Obtain the tensor shape.
1 | shape = infer_tensor.get_shape() |
Parent topic: InferTensor