Shortcuts

MultiProcessWeightSyncScheme

class torchrl.weight_update.MultiProcessWeightSyncScheme(strategy: Literal['state_dict', 'tensordict'] = 'state_dict')[source]

Weight synchronization for multiprocess operations using pipes.

This scheme creates transports that communicate via multiprocessing pipes.

create_receiver() WeightReceiver

Create a receiver for this scheme.

Returns:

WeightReceiver instance configured for this scheme.

create_sender() WeightSender

Create a sender for this scheme.

Returns:

WeightSender instance configured for this scheme.

create_transport(pipe: Any) TransportBackend[source]

Create an MPTransport using the provided pipe.

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