Shortcuts

PinMemoryTransform

class torchrl.envs.transforms.PinMemoryTransform[source]

Calls pin_memory on the tensordict to facilitate writing on CUDA devices.

forward(tensordict: TensorDictBase) TensorDictBase

Reads the input tensordict, and for the selected keys, applies the transform.

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