clone_nest

ivy.clone_nest(args, kwargs, node_strs, max_depth=1)[source]

Clone the input arguments across the specified nodes.

Parameters
  • args (list of any) – The positional arguments to clone.

  • kwargs (dict of any) – The keyword arguments to clone.

  • node_strs (sequence of strs) – The nodes to clone the arguments to.

  • max_depth (int, optional) – The maximum nested depth to reach. Default is 1. Increase this if the nest is deeper.

Returns

arguments cloned to each of the target nodes


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty