mxnet.np.copy¶
-
copy
(a, out=None)¶ Return an array copy of the given object.
- Parameters
a (_Symbol) – Input array.
- Returns
arr (_Symbol) – Array interpretation of a.
—–
Examples
>>> x = np.array([1, 2, 3]) >>> y = x >>> z = np.copy(x) >>> x[0] = 10 >>> x[0] == y[0] True >>> x[0] == z[0] False
Did this page help you?
Yes
No
Thanks for your feedback!