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

python pipeline support a new feature, only receiving the frist arrival data from pre-ops #1380

Merged
merged 3 commits into from
Sep 9, 2021

Conversation

TeslaZhao
Copy link
Collaborator

python pipeline 新增特性:

channel支持从前置多个op中只拿到最快到达数据后,交给后置OP,其他数据丢弃。如: op C的前置op 是A和B,请求分别达到A,B后,由于A处理快,B处理慢,因此A先将结果发给op C的channel中。此时,如果config.yml中有如下设置
dag:
# 只接收最快到达的前置op数据,其他数据丢弃,默认为False
channel_recv_frist_arrive: True

使用场景在分布式MP节点上使用,因为MP节点之间有broadcast保证数据结果一样。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 7, 2021

Thanks for your contribution!

Copy link
Collaborator

@HexToString HexToString left a comment

Choose a reason for hiding this comment

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

LGTM

@TeslaZhao TeslaZhao merged commit 6477fe0 into PaddlePaddle:develop Sep 9, 2021
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.

2 participants