mindspore/docs/api/api_python/mindspore.ops.func_csr_squa...

19 lines
454 B
ReStructuredText
Executable File
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.csr_square
=========================
.. py:function:: mindspore.ops.csr_square(x: CSRTensor)
逐元素返回CSRTensor的平方。
.. math::
y_i = x_i ^ 2
参数:
- **x** (CSRTensor) - 输入CSRTensor的维度范围为[0,7],类型为数值类型。
返回:
CSRTensor具有与当前CSRTensor相同的数据类型和shape。
异常:
- **TypeError** - `x` 不是CSRTensor。