Rate this Page

InitialSyncTransport#

class torchrl.weight_update.InitialSyncTransport(*args, **kwargs)[source]#

Optional initial-connection capability for weight transports.

setup_connection_and_weights_on_receiver(*, worker_idx: int, weights: Any = None, model: Any = None, strategy: WeightStrategy | None = None) Any[source]#

Synchronize weights on the receiver before collection starts.

setup_connection_and_weights_on_sender() None[source]#

Synchronize weights on sender side before collection starts.

This is called once after workers are initialized to send the initial weights. This can be a no-op (weights are sent via send_weights).