forked from mindspore-Ecosystem/mindspore
19 lines
345 B
ReStructuredText
19 lines
345 B
ReStructuredText
|
|
mindspore.ops.TensorShape
|
|||
|
|
=================
|
|||
|
|
|
|||
|
|
.. py:class:: mindspore.ops.TensorShape()
|
|||
|
|
|
|||
|
|
返回输入Tensor的Shape。
|
|||
|
|
|
|||
|
|
**输入:**
|
|||
|
|
|
|||
|
|
- **input_x** (Tensor) - 第一个输入,是一个Tensor类型数据
|
|||
|
|
|
|||
|
|
**输出:**
|
|||
|
|
|
|||
|
|
Tensor,输入`input_x`的shape
|
|||
|
|
|
|||
|
|
**异常:**
|
|||
|
|
|
|||
|
|
- **TypeError** - `input_x` 都不是Tensor。
|