2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.func_csr_square.rst 437 Bytes
一键复制 编辑 原始数据 按行查看 历史
luojianing 提交于 2023-04-03 18:43 . delete limitation about rank 8 in docs

mindspore.ops.csr_square

.. py:function:: mindspore.ops.csr_square(x: CSRTensor)

    逐元素返回CSRTensor的平方。

    .. math::
        out_{i} = (x_{i})^2

    参数:
        - **x** (CSRTensor) - 输入CSRTensor的类型为数值类型。

    返回:
        CSRTensor,具有与当前CSRTensor相同的数据类型和shape。

    异常:
        - **TypeError** - `x` 不是CSRTensor。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助