diff --git a/python/paddle/fluid/dataloader/dataset.py b/python/paddle/fluid/dataloader/dataset.py index e46083295d1ce1b818509a0b88c75f1dbd05daf6..bf3d0a81f99482557a3d4098e98ac7078d9a9321 100755 --- a/python/paddle/fluid/dataloader/dataset.py +++ b/python/paddle/fluid/dataloader/dataset.py @@ -97,10 +97,10 @@ class IterableDataset(Dataset): .. code-block:: python import numpy as np - from paddle.io import Dataset + from paddle.io import IterableDataset # define a random dataset - class RandomDataset(Dataset): + class RandomDataset(IterableDataset): def __init__(self, num_samples): self.num_samples = num_samples