mindspore2022/docs/api/api_python/ops/mindspore.ops.Identity.rst

18 lines
425 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.Identity
=======================
.. py:class:: mindspore.ops.Identity
返回与输入具有相同shape和值的Tensor。
**输入:**
- **x** (Tensor) - shape为 :math:`(x_1, x_2, ..., x_R)` 的Tensor。数据类型为Number。
**输出:**
Tensorshape和数据类型与输入相同 :math:`(x_1, x_2, ..., x_R)`
**异常:**
- **TypeError** - `x` 不是Tensor。