From 0606495b50deab64ff4370c8fadd6e4eaca12398 Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Mon, 13 Apr 2020 14:30:42 +0000 Subject: [PATCH] fix DataLoader code sample. test=develop --- doc/fluid/api_cn/io_cn/DataLoader_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/io_cn/DataLoader_cn.rst b/doc/fluid/api_cn/io_cn/DataLoader_cn.rst index 28d0cdb0a..cb1e641bd 100755 --- a/doc/fluid/api_cn/io_cn/DataLoader_cn.rst +++ b/doc/fluid/api_cn/io_cn/DataLoader_cn.rst @@ -39,7 +39,7 @@ DataLoader当前仅支持 ``map-style`` 的数据集(可通过下标索引样本 import numpy as np import paddle.fluid as fluid - from paddle.fluid.io import Dataset, MnistDataset, BatchSampler, DataLoader + from paddle.io import Dataset, BatchSampler, DataLoader BATCH_NUM = 20 BATCH_SIZE = 16 -- GitLab