chainerx.ravel

chainerx.ravel(a)

Returns a flattened array.

Parameters

a (ndarray) – Array to be flattened.

Returns

A flattened view of a if possible, otherwise a copy.

Return type

ndarray

Note

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

See also

numpy.ravel()