chainerx.negative

chainerx.negative(x)

Numerical negative, element-wise.

Parameters

x (ndarray) – Input array.

Returns

Returned array: \(y = -x\).

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input array x.

See also

numpy.negative