dispatch#

ray.util.tpu.dispatch(*args: Any, **kwargs: Any) → List[ray._raylet.ObjectRef][source]#

Run a remote function on every host in a TPU slice.

Deprecated, please use run_on_slice instead.

Parameters:
  • *args (Any) – Positional arguments passed to run_on_slice.

  • **kwargs (Any) – Keyword arguments passed to run_on_slice.

Returns:

The object refs that run_on_slice returns, one per host in the slice.

Return type:

List[ray._raylet.ObjectRef]

Warning

DEPRECATED: This API is deprecated and may be removed in future Ray releases. ‘dispatch’ is deprecated and has been renamed to ‘run_on_slice’. Please use ‘run_on_slice’ instead.

PublicAPI (alpha): This API is in alpha and may change before becoming stable.