mindspore/docs/api/api_python/mindspore.ops.func_coo_roun...

19 lines
422 B
ReStructuredText
Raw Normal View History

2022-11-10 11:24:01 +08:00
mindspore.ops.coo_round
========================
.. py:function:: mindspore.ops.coo_round(x: COOTensor)
对输入数据进行四舍五入到最接近的整数数值。
.. math::
out_i \approx x_i
参数:
- **x** (COOTensor) - 输入COOTensor。
返回:
COOTensorshape和数据类型与输入 `x` 相同。
异常:
- **TypeError** - `x` 不是COOTensor。