Shortcuts

TransportBackend

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

Abstract interface for different communication mechanisms.

check_connection() bool[source]

Check if the connection is still alive.

receive_weights(timeout: float = 1.0) tuple[str, Any] | None[source]

Receive weights from the sender. Returns (model_id, weights) or None if timeout.

send_weights(model_id: str, weights: Any) None[source]

Send weights to the receiver.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources