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

22 lines
548 B
ReStructuredText
Raw Permalink 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.fmax
==================
.. py:function:: mindspore.ops.fmax(input, other)
逐元素计算输入tensor的最大值。
.. math::
output_i = \max(x1_i, x2_i)
.. note::
- 支持隐式类型转换、类型提升。
- 输入 `input``other` 的shape必须能相互广播。
- 如果其中一个比较值是NaN则返回另一个比较值。
参数:
- **input** (Tensor) - 第一个输入。
- **other** (Tensor) - 第二个输入。
返回:
Tensor