dev_clone_nest

ivy.dev_clone_nest(args, kwargs, dev_strs, max_depth=1)[source]

Clone the input arguments across the specified devices.

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

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

  • dev_strs (sequence of strs) – The devices 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 devices


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty