mindspore.ops.csr_square ========================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.func_csr_square.rst :alt: 查看源文件 .. py:function:: mindspore.ops.csr_square(x: CSRTensor) 逐元素返回CSRTensor的平方。 .. math:: out_{i} = (x_{i})^2 参数: - **x** (CSRTensor) - 输入CSRTensor的类型为数值类型。 返回: CSRTensor,具有与当前CSRTensor相同的数据类型和shape。 异常: - **TypeError** - `x` 不是CSRTensor。