copy_array

ivy.copy_array(x: Union[ivy.Array, ivy.NativeArray], f: Optional[ivy.Framework] = None) → Union[ivy.Array, ivy.NativeArray][source]

Copy an array.

Parameters
  • x (array) – The array to copy

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

A copy of the input array.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty