ivy.variable_data(x, f=None)[source]

Some backends wrap arrays in a dedicated variable class. For those frameworks, this function returns that wrapped array. For frameworks which do not have a dedicated variable class, the function returns the data passed in.

  • x (variable) – An ivy variable.

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


The internal data stored by the variable

Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty