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

[Fleet Executor] Add feed, fetch and check correctness #37824

Merged
merged 4 commits into from
Dec 7, 2021

Conversation

LiYuRio
Copy link
Contributor

@LiYuRio LiYuRio commented Dec 3, 2021

PR types

New features

PR changes

Others

Describe

在program里增加feed,fetch op,修改测试用例做验证;使用pipeline_degree判断执行策略。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Dec 3, 2021

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

wangxicoding
wangxicoding previously approved these changes Dec 3, 2021
Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

cached_ctx = self._prepare_fleet_executor(
program=cached_program, scope=cached_scope)
self._add_ctx_cache(cache_key, cached_ctx)
self._feed_data(cached_program, feed, feed_var_name, cached_scope)
Copy link
Contributor

Choose a reason for hiding this comment

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

混合并行中的Pipeline使用了read op,不用feed。后面可以判断一下,如果用了read相关op,应该不用设置feed

Copy link
Contributor

@FeixLiu FeixLiu left a comment

Choose a reason for hiding this comment

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

需要把multi device的test pass掉吧?

if cached_program is None:
cached_program = self._add_feed_fetch_ops(
program=program,
feed=feed,
Copy link
Contributor

Choose a reason for hiding this comment

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

这儿需要判断一下,如果feed是NoneType的话,需要传一个[]进去,不然这个函数里的enumerate会报错。

if cached_program is None:
real_feed = [] if feed is None else feed
cached_program = self._add_feed_fetch_ops(
program=program,
Copy link
Contributor

Choose a reason for hiding this comment

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

这儿为啥用的是program,不是section_program呀

Copy link
Contributor

@FeixLiu FeixLiu left a comment

Choose a reason for hiding this comment

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

LGTM

@FeixLiu FeixLiu merged commit b8793f7 into PaddlePaddle:develop Dec 7, 2021
Zjq9409 pushed a commit to Zjq9409/Paddle that referenced this pull request Dec 10, 2021
@LiYuRio LiYuRio deleted the dev_add_feed_fetch branch December 31, 2021 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants