ray.experimental.collective.get_collective_groups#
- ray.experimental.collective.get_collective_groups(actors: List[ActorHandle], backend: str | None = None) List[CommunicatorHandle] [source]#
Get the collective groups that the given actors are a subset of. Filter by backend if provided.
- Parameters:
actors – List of actors. Return handles to all collective groups that these actors are a subset of.
backend – An optional backend to filter by. See ray.util.collective.types.Backend for valid backends.
- Returns:
A list of communicator handles that the actors are a subset of.
PublicAPI (alpha): This API is in alpha and may change before becoming stable.