forked from mindspore-Ecosystem/mindspore
19 lines
454 B
ReStructuredText
Executable File
19 lines
454 B
ReStructuredText
Executable File
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。
|