修改错别字

This commit is contained in:
zergtant 2019-04-02 23:08:13 +08:00
parent 1820ef5e9a
commit 8148f055be

View File

@ -534,7 +534,7 @@
"source": [
"在运行时我们也不能简单的使用`python 文件名`来执行了我们这里需要使用PyTorch中为我们准备好的torch.distributed.launch运行脚本。它能自动进行环境变量的设置并使用正确的node_rank参数调用脚本。\n",
"\n",
"这里我们要准备台机器作为master所有的机器都要求能对它进行访问。因此它需要拥有一个可以访问的IP地址示例中为196.168.100.100以及一个开放的端口示例中为6666。我们将使用torch.distributed.launch在第一台机器上运行脚本\n",
"这里我们要准备台机器作为master所有的机器都要求能对它进行访问。因此它需要拥有一个可以访问的IP地址示例中为196.168.100.100以及一个开放的端口示例中为6666。我们将使用torch.distributed.launch在第一台机器上运行脚本\n",
"```bash\n",
"python -m torch.distributed.launch --nproc_per_node=2 --nnodes=2 --node_rank=0 --master_addr=\"192.168.100.100\" --master_port=6666 文件名 (--arg1 --arg2 等其他参数)\n",
"```\n",