开始使用
进阶资料
API参考
shared_tensor()
注释
杂项
在同一个torch.distributed进程组中的所有进程可访问的共享内存中创建一个张量。
torch.distributed
内容未初始化。
shape (tuple[int]) – 张量的形状。
dtype (torch.dtype, optional) – 张量的数据类型。
共享张量。
张量