ndarray
autograd
loss
NDArray.
copy
Makes a copy of this NDArray, keeping the same context.
NDArray
The copied array
NDArray, CSRNDArray or RowSparseNDArray
Examples
>>> x = mx.nd.ones((2,3)) >>> y = x.copy() >>> y.asnumpy() array([[ 1., 1., 1.], [ 1., 1., 1.]], dtype=float32)