快捷方式

stack

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

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

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

文件

存取 PyTorch 的全面開發者文件

檢視文件

教學

取得針對初學者和進階開發人員的深入教學課程

檢視教學課程

資源

尋找開發資源並獲得解答

檢視資源