-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
python/paddle/fluid/executor.py
Outdated
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) |
There was a problem hiding this comment.
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
There was a problem hiding this 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掉吧?
python/paddle/fluid/executor.py
Outdated
if cached_program is None: | ||
cached_program = self._add_feed_fetch_ops( | ||
program=program, | ||
feed=feed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这儿需要判断一下,如果feed是NoneType的话,需要传一个[]进去,不然这个函数里的enumerate会报错。
python/paddle/fluid/executor.py
Outdated
if cached_program is None: | ||
real_feed = [] if feed is None else feed | ||
cached_program = self._add_feed_fetch_ops( | ||
program=program, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这儿为啥用的是program,不是section_program呀
92058db
to
824d0a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Others
Describe
在program里增加feed,fetch op,修改测试用例做验证;使用pipeline_degree判断执行策略。