mindspore/docs/api/api_python/ops/mindspore.ops.func_shape.rst

13 lines
221 B
ReStructuredText

mindspore.ops.shape
====================
.. py:function:: mindspore.ops.shape(input_x)
返回输入tensor的shape。
参数:
- **input_x** (Tensor) - 输入tensor。
返回:
tuple[int]