Skip to content

Commit

Permalink
fix IterableDataset doc. test=document_fix (#32544)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavengate authored Apr 26, 2021
1 parent 5161f71 commit fd85a4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/fluid/dataloader/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd85a4a

Please sign in to comment.