快捷方式

stack

class tensordict.stack(input, dim=0, *, out=None)

沿著給定維度將 tensordicts 堆疊成一個 tensordict。

此呼叫等同於呼叫 torch.stack(),但與 torch.compile 相容。

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

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

檢視教程

資源

查詢開發資源並解答你的疑問

檢視資源