sponge.function.identity ============================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/master/MindSPONGE/docs/api/api_python/function/sponge.function.identity.rst :alt: 查看源文件 .. py:function:: sponge.function.identity(x: Tensor) 返回与输入具有相同shape和内容的张量。 参数: - **x** (Tensor) - 张量的shape为 :math:`(x_1, x_2, ..., x_R)`。数据类型为number。 返回: Tensor,张量的shape和数据类型都与 `x` 一致, :math:`(x_1, x_2, ..., x_R)`。