2022-02-19 15:19:19 +08:00
|
|
|
|
mindspore.ops.Identity
|
|
|
|
|
|
=======================
|
|
|
|
|
|
|
|
|
|
|
|
.. py:class:: mindspore.ops.Identity
|
|
|
|
|
|
|
2022-03-29 09:39:29 +08:00
|
|
|
|
返回与输入具有相同shape和值的Tensor。
|
2022-02-19 15:19:19 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
输入:
|
|
|
|
|
|
- **x** (Tensor) - shape为 :math:`(x_1, x_2, ..., x_R)` 的Tensor。数据类型为Number。
|
2022-02-19 15:19:19 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
输出:
|
|
|
|
|
|
Tensor,shape和数据类型与输入相同, :math:`(x_1, x_2, ..., x_R)` 。
|
2022-02-19 15:19:19 +08:00
|
|
|
|
|
2022-07-26 10:27:56 +08:00
|
|
|
|
异常:
|
|
|
|
|
|
- **TypeError** - `x` 不是Tensor。
|