forked from mindspore-Ecosystem/mindspore
20 lines
526 B
ReStructuredText
Executable File
20 lines
526 B
ReStructuredText
Executable File
mindspore.ops.coo_inv
|
||
======================
|
||
|
||
.. py:function:: mindspore.ops.coo_inv(x: COOTensor)
|
||
|
||
逐元素计算输入COOTensor的倒数。
|
||
|
||
.. math::
|
||
out_i = \frac{1}{x_{i} }
|
||
|
||
参数:
|
||
- **x** (COOTensor) - 任意维度的COOTensor。其数据类型为float16、float32或int32。
|
||
|
||
返回:
|
||
COOTensor,shape和类型与输入相同。
|
||
|
||
异常:
|
||
- **TypeError** - `x` 不是COOTensor。
|
||
- **TypeError** - `x` 的数据类型不为float16、float32或int32。
|