dev_dist

ivy.dev_dist(x, dev_strs: Union[Iterable[str], Dict[str, int]], axis=0)[source]

Distribute the input item across the specified devices, returning a list of sub-items, each on a different device.

Parameters
  • x (array or container) – The input array or container to distribute across devices.

  • dev_strs (sequence of strs or dict of split sizes) – The devices to distribute the input across.

  • axis (int, optional) – The axis along which to split the input. Default is 0.

Returns

array or container distributed across the target devices


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty