set_nest_at_indices

ivy.set_nest_at_indices(nest, indices, values)[source]

Set the value of a nested item at specified indices with specified values.

Parameters
  • nest (nested) – The nested object to update.

  • indices (tuple of tuples of indices) – A tuple of tuples of indices for the indices at which to update.

  • values (sequence of any) – The new values for updating.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty