chainerx.atleast_3d¶

chainerx.atleast_3d(a)

View inputs as arrays with at least three dimensions.

Parameters

a (ndarray) – Array.

Returns

An array with a.ndim >= 3. Copies are avoided where possible, and views with three or more dimensions are returned.

Return type

ndarray

Note

• Arrays that already have three or more dimensions are preserved.

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