is_variable

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

Determines whether the input is a variable or not.

Parameters
  • x (array) – An ivy array.

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

Returns

Boolean, true if x is a trainable variable, false otherwise.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty