快捷方式

stack

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

沿着给定维度将 tensordicts 堆叠成一个 tensordict。

此调用等同于调用 torch.stack(),但与 torch.compile 兼容。

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

获取面向初学者和高级开发者的深入教程

查看教程

资源

查找开发资源并解答你的疑问

查看资源