variable

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

Creates a variable, which supports gradient computation.

Parameters
  • x (array) – An ivy array.

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

Returns

An ivy variable, supporting gradient computation.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty