未验证 提交 fd85a4af 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix IterableDataset doc. test=document_fix (#32544)

上级 5161f71a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册