mindspore.ops.nextafter ======================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_nextafter.rst :alt: 查看源文件 .. py:function:: mindspore.ops.nextafter(input, other) 逐元素计算 `input` 指向 `other` 的下一个可表示浮点值。 .. math:: out_i = \begin{cases} & input_i + eps, & \text{if } input_i < other_i \\ & input_i - eps, & \text{if } input_i > other_i \\ & input_i, & \text{if } input_i = other_i \end{cases} 其中eps为输入tensor数据类型最小可表示增量值。 更多详细信息请参见 `A Self Regularized Non-Monotonic Neural Activation Function `_ 。 参数: - **input** (Tensor) - 第一个输入tensor - **other** (Tensor) - 第二个输入tensor。 返回: Tensor