to_list

ivy.to_list(x: ivy.NativeArray, f: Optional[ivy.Framework] = None) → List[source]

Creates a (possibly nested) list from input array.

Parameters
  • x (array) – Input array.

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

Returns

A list representation of the input array.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty