mindspore.ops.Fmax

class mindspore.ops.Fmax[source]

Computes the maximum of input tensors element-wise.

Warning

This is an experimental API that is subject to change or deletion.

Refer to mindspore.ops.fmax() for more detail.

Supported Platforms:

CPU

Examples

>>> x1 = Tensor(np.array([1.0, 5.0, 3.0]), mindspore.float32)
>>> x2 = Tensor(np.array([4.0, 2.0, 6.0]), mindspore.float32)
>>> fmax = ops.Fmax()
>>> output = fmax(x1, x2)
>>> print(output)
[4. 5. 6.]