Table Of Contents
Table Of Contents

mx.symbol.broadcast_maximum

Description

Returns element-wise maximum of the input arrays with broadcasting.

This function compares two input arrays and returns a new array having the element-wise maxima.

Example:

x = [[ 1.,  1.,  1.],
[ 1.,  1.,  1.]]

y = [[ 0.],
[ 1.]]

broadcast_maximum(x, y) = [[ 1.,  1.,  1.],
[ 1.,  1.,  1.]]

Usage

mx.symbol.broadcast_maximum(...)

Arguments

Argument

Description

lhs

NDArray-or-Symbol.

First input to the function

rhs

NDArray-or-Symbol.

Second input to the function

name

string, optional.

Name of the resulting symbol.