chainerx.fabs

chainerx.fabs(x)

Compute the absolute values element-wise. :param x: Input array. :type x: ~chainerx.ndarray

Returns

The absolute values of x, the returned values are always floats.

Return type

ndarray

See also

numpy.fabs