Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pytorch-doc-zh
提交
0fdfffba
P
pytorch-doc-zh
项目概览
OpenDocCN
/
pytorch-doc-zh
通知
122
Star
3932
Fork
992
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pytorch-doc-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
0fdfffba
编写于
4月 13, 2019
作者:
L
Lu
提交者:
GitHub
4月 13, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update distributed_deprecated.md
上级
9cda8c3d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
docs/1.0/distributed_deprecated.md
docs/1.0/distributed_deprecated.md
+10
-10
未找到文件。
docs/1.0/distributed_deprecated.md
浏览文件 @
0fdfffba
...
...
@@ -169,7 +169,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.all_reduce(tensor, op=<object object>, group=<object object>)
torch.distributed.deprecated.all_reduce(tensor, op=<object object>, group=<object object>)
减少所有机器上的张量数据,以便获得最终结果。
...
...
@@ -183,7 +183,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.reduce(tensor, dst, op=<object object>, group=<object object>)
torch.distributed.deprecated.reduce(tensor, dst, op=<object object>, group=<object object>)
减少所有机器的张量数据。
...
...
@@ -198,7 +198,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.all_gather(tensor_list, tensor, group=<object object>)
torch.distributed.deprecated.all_gather(tensor_list, tensor, group=<object object>)
从列表中收集整个组的张量。
...
...
@@ -210,7 +210,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.gather(tensor, **kwargs)
torch.distributed.deprecated.gather(tensor, **kwargs)
从单个进程中收集张量列表。
...
...
@@ -223,7 +223,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.scatter(tensor, **kwargs)
torch.distributed.deprecated.scatter(tensor, **kwargs)
将张量列表分散到组中的所有进程。
...
...
@@ -238,7 +238,7 @@ tensor必须在参与集合体的所有过程中具有相同数量的元素。
*
group(optional)-整体的组
torch.distributed.deprecated.barrier(group = < object object >)
torch.distributed.deprecated.barrier(group = < object object >)
同步所有进程。
...
...
@@ -301,7 +301,7 @@ tensor必须在参与集合体的所有进程的所有GPU中具有相同数量
*
group(optional)-整体的组
torch.distributed.deprecated.reduce_multigpu(tensor_list,dst,op = < object object >,group = < object object >)
torch.distributed.deprecated.reduce_multigpu(tensor_list,dst,op = < object object >,group = < object object >)
减少所有计算机上多个GPU的张量数据。每个张量:attr tensor_list应该驻留在一个单独的GPU上。
...
...
@@ -319,7 +319,7 @@ tensor必须在参与集合体的所有进程的所有GPU中具有相同数量
*
group(optional)-整体的组
torch.distributed.deprecated.all_gather_multigpu(output_tensor_lists,input_tensor_list,group = < object object >)
torch.distributed.deprecated.all_gather_multigpu(output_tensor_lists,input_tensor_list,group = < object object >)
从列表中收集整个组的张量。每个张量input_tensor_list应位于单独的GPU上。
...
...
@@ -345,8 +345,8 @@ torch.distributed.launch 是一个模块,它在每个训练节点上产生多
### 如何使用这个模块:
1.
单节点多进程分布式训练
<<<
python -m torch.distributed.launch --nproc_per_node=NUM_GPUS_YOU_HAVE
YOUR_TRAINING_SCRIPT.py(--arg1 --arg2 --arg3 and all other arguments of your training script)
>>>
python -m torch.distributed.launch --nproc_per_node=NUM_GPUS_YOU_HAVE
YOUR_TRAINING_SCRIPT.py(--arg1 --arg2 --arg3 and all other arguments of your training script)
1.
多节点多进程分布式训练:(比如,两个节点)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录