2.5K Star 8.4K Fork 4.7K

GVPMindSpore/mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.ops.func_ceil.rst 613 Bytes
一键复制 编辑 原始数据 按行查看 历史
ligan 提交于 2024-02-22 15:20 . aclnnceil

mindspore.ops.ceil

.. py:function:: mindspore.ops.ceil(input)

    向上取整函数。

    .. math::
        out_i = \lceil x_i \rceil = \lfloor x_i \rfloor + 1

    参数:
        - **input** (Tensor) - Ceil的输入。支持的数据类型:

          - Ascend: float16、float32、float64、bfloat16。
          - GPU/CPU: float16、float32、float64。

    返回:
        Tensor,shape与 `input` 相同。

    异常:
        - **TypeError** - `input` 不是Tensor。
        - **TypeError** - 如果 `input` 的数据类型不是float16、float32、float64或bfloat16。
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
r2.3.q1

搜索帮助