Design
Specification
API
API Mapping
Migration Guide
FAQ
RELEASE NOTES
Returns the shape of the input tensor.
Ascend GPU CPU
Ascend
GPU
CPU
Examples
>>> input_x = Tensor(np.ones(shape=[3, 2, 1]), mindspore.float32) >>> shape = ops.TensorShape() >>> output = shape(input_x) >>> print(output) [3 2 1]