forked from mindspore-Ecosystem/mindspore
20 lines
614 B
ReStructuredText
Executable File
20 lines
614 B
ReStructuredText
Executable File
mindspore.ops.coo_ceil
|
||
=======================
|
||
|
||
.. py:function:: mindspore.ops.coo_ceil(x: COOTensor)
|
||
|
||
向上取整函数。
|
||
|
||
.. math::
|
||
out_i = \lcoo_ceil x_i \rcoo_ceil = \lfloor x_i \rfloor + 1
|
||
|
||
参数:
|
||
- **x** (COOTensor) - Ceil的输入。其数据类型为float16或float32。shape: :math:`(N, *)` ,其中 :math:`*` 表示任意数量的附加维度。秩应小于8。
|
||
|
||
返回:
|
||
COOTensor,shape与 `x` 相同。
|
||
|
||
异常:
|
||
- **TypeError** - `x` 的不是COOTensor。
|
||
- **TypeError** - `x` 的数据类型既不是float16也不是float32。
|