2022-02-21 18:06:28 +08:00
|
|
|
|
mindspore.ops.TensorShape
|
2022-02-25 11:57:08 +08:00
|
|
|
|
==========================
|
2022-02-21 18:06:28 +08:00
|
|
|
|
|
2022-02-25 11:57:08 +08:00
|
|
|
|
.. py:class:: mindspore.ops.TensorShape
|
2022-02-21 18:06:28 +08:00
|
|
|
|
|
|
|
|
|
|
返回输入Tensor的Shape。
|
|
|
|
|
|
|
|
|
|
|
|
**输入:**
|
|
|
|
|
|
|
2022-03-01 16:35:02 +08:00
|
|
|
|
- **input_x** (Tensor) - 第一个输入,是一个Tensor类型数据。
|
2022-02-21 18:06:28 +08:00
|
|
|
|
|
|
|
|
|
|
**输出:**
|
|
|
|
|
|
|
2022-03-01 16:35:02 +08:00
|
|
|
|
Tensor,输入 `input_x` 的shape。
|
2022-02-21 18:06:28 +08:00
|
|
|
|
|
|
|
|
|
|
**异常:**
|
|
|
|
|
|
|
|
|
|
|
|
- **TypeError** - `input_x` 都不是Tensor。
|