RayActorTransport¶
- class torchrl.weight_update.RayActorTransport(actor_ref=None, update_method: str = 'tensordict', tensor_transport: Literal['object_store', 'nixl'] = 'object_store')[source]¶
Ray transport for communicating with Ray actors (not collectors).
This transport is designed for updating models hosted within Ray actors, such as RayModuleTransform instances. It directly calls the actor’s update_weights method rather than going through collector update methods.
- receive_weights(timeout: float = 1.0) tuple[str, Any] | None[source]¶
Ray actor workers receive weights through direct method calls.