inplace_update

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

Perform in-place update for the input variable.

Parameters
  • x (variable) – The variable to update.

  • val (array) – The array to update the variable with.

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

Returns

The variable following the in-place update.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty