未验证 提交 cfc8c631 编写于 作者: 长满石楠的荒原 提交者: GitHub

更改代码笔误 (#693)

* 更改代码笔误

* Update torch.utils.data.DataLoader.md
Co-authored-by: NJason <928090362@qq.com>
上级 60ef0f0a
......@@ -72,7 +72,7 @@ class DataLoader(paddle.io.DataLoader):
return_list = True
else:
return_list = False
return_list = True
super().__init__(
dataset,
feed_list=None,
......@@ -89,5 +89,5 @@ class DataLoader(paddle.io.DataLoader):
timeout=timeout,
worker_init_fn=worker_init_fn)
if sampler is not None:
seld.batch_sampler.sampler = sampler
self.batch_sampler.sampler = sampler
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册