clone

ivy.clone(x, node_strs)[source]

Clone the input item to each of the specified nodes, returning a list of cloned items, each on a different node.

Parameters
  • x (array or container) – The input array or container to clone to each node.

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

Returns

array or container distributed across the target nodes


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty