Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[xdoctest][task 332] reformat example code with google style in python/paddle/base/dataset.py #57143

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

@paddle-bot
Copy link

paddle-bot bot commented Sep 9, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Sep 9, 2023
>>> filelist = ["a.txt", "b.txt"]
>>> dataset.set_filelist(filelist)
>>> dataset.load_into_memory()
>>> print dataset.get_memory_data_size(fleet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

语法错误

>>> filelist = ["a.txt", "b.txt"]
>>> dataset.set_filelist(filelist)
>>> dataset.load_into_memory()
>>> print dataset.get_pv_data_size()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

语法错误

>>> dataset.set_filelist(filelist)
>>> dataset.load_into_memory()
>>> dataset.global_shuffle(fleet)
>>> print dataset.get_shuffle_data_size(fleet)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

语法错误

dataset.set_pv_batch(128)
>>> import paddle.base as base
>>> dataset = base.DatasetFactory().create_dataset()
>>> dataset.set_pv_batch(128)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set_pv_batch_size

dataset.set_use_var([data, label])
>>> import paddle.base as base
>>> dataset = base.DatasetFactory().create_dataset()
>>> dataset.set_use_var([data, label])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data,label 要定义一下 ~

Comment on lines +1229 to +1231
>>> import paddle.base as base
>>> dataset = base.DatasetFactory().create_dataset("QueueDataset")
>>> dataset.local_shuffle()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个 skip 吧~ 说明 NotImplementedError will be raised

>>> dataset = base.DatasetFactory().create_dataset()
>>> data = paddle.static.data(name="data", shape=[None, 10, 10], dtype="int64")
>>> label = paddle.static.data(name="label", shape=[None, 1], dtype="int64", lod_level=1)
>>> dataset.set_use_var([data, label])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

根据 CI 报错,看样子需要 enable_static 一下

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Sep 11, 2023
@luotao1 luotao1 merged commit f7e100f into PaddlePaddle:develop Sep 11, 2023
@yoyoIcy yoyoIcy deleted the doc332 branch September 11, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants