to_numpy

ivy.to_numpy(x: ivy.NativeArray, f: Optional[ivy.Framework] = None) → numpy.ndarray[source]

Converts array into a numpy array.

Parameters
  • x (array) – Input array.

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

Returns

A numpy array.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty