forked from mindspore-Ecosystem/mindspore
18 lines
501 B
ReStructuredText
Executable File
18 lines
501 B
ReStructuredText
Executable File
mindspore.ops.csr_neg
|
||
======================
|
||
|
||
.. py:function:: mindspore.ops.csr_neg(x: CSRTensor)
|
||
|
||
计算输入x的相反数并返回。
|
||
|
||
.. math::
|
||
out_{i} = - x_{i}
|
||
|
||
参数:
|
||
- **x** (CSRTensor) - Neg的输入,shape: :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度。秩应小于8。其数据类型为数值型。
|
||
|
||
返回:
|
||
CSRTensor,shape和类型与输入相同。
|
||
|
||
异常:
|
||
- **TypeError** - `x` 不是CSRTensor。 |