快捷方式

RoundRobinWriter

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

一個用於可組合經驗回放緩衝區的 RoundRobin Writer 類。

引數:

compilable (bool, 可選) – 寫入器是否可編譯。如果為 True,則寫入器不能在多個程序之間共享。預設為 False

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

在適當的索引處插入一條資料,並返回該索引。

extend(data: Sequence) Tensor[source]

在適當的索引處插入一系列資料點,並返回包含這些索引的張量。

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深入教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源