快捷方式

RoundRobinWriter

class torchrl.data.replay_buffers.RoundRobinWriter(compilable: bool = False)[source]

A RoundRobin Writer class for composable replay buffers.

参数:

compilable (bool, optional) – whether the writer is compilable. If True, the writer cannot be shared between multiple processes. Defaults to False.

add(data: Any) int | torch.Tensor[source]

将一条数据插入到适当的索引,并返回该索引。

extend(data: Sequence) Tensor[source]

将一系列数据点插入到适当的索引,并返回包含这些索引的张量。

文档

访问全面的 PyTorch 开发者文档

查看文档

教程

为初学者和高级开发者提供深入的教程

查看教程

资源

查找开发资源并让您的问题得到解答

查看资源