添加在非 jupyter notebook 环境下代码需要引入的包的代码。

虽然对于老鸟这不是个事,但是对于看文档学习的初学者来说,确实是件困惑的事。
This commit is contained in:
久永 2020-02-28 10:56:33 +08:00 committed by GitHub
parent d2e0009fe3
commit b13697fb3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -499,6 +499,8 @@
"outputs": [],
"source": [
"# 以下脚本在jupyter notebook执行肯定会不成功请保存成py文件后测试\n",
"import torch\n",
"import argparse\n",
"from torch.utils.data.distributed import DistributedSampler\n",
"from torch.utils.data import DataLoader\n",
"\n",