mindspore/docs/api/api_python/mindspore.ops.func_csr_inv.rst

20 lines
526 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_inv
======================
.. py:function:: mindspore.ops.csr_inv(x: CSRTensor)
逐元素计算输入CSRTensor的倒数。
.. math::
out_i = \frac{1}{x_{i} }
参数:
- **x** (CSRTensor) - 任意维度的CSRTensor。其数据类型为float16、float32或int32。
返回:
CSRTensorshape和类型与输入相同。
异常:
- **TypeError** - `x` 不是CSRTensor。
- **TypeError** - `x` 的数据类型不为float16、float32或int32。