chainerx.copy

chainerx.copy(a)

Creates a copy of a given array.

Parameters

a (ndarray) – Source array.

Returns

A copy array on the same device as a.

Return type

ndarray

Note

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

See also

numpy.copy()