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

Optimize fleet API: add input check for some interfaces #18971

Merged
merged 11 commits into from
Sep 6, 2019

Conversation

123malin
Copy link
Contributor

@123malin 123malin commented Aug 1, 2019

优化fleet API,给部分接口增加输入check,对用户的输入做一些限定,从而避免因输入不当导致的运行失败,优化的fleet API主要包括:
1)DistributeTranspilerConfig,对sync_mode、runtime_split_send_recv这两个配置参数新增setter修饰器,从而避免其被设置为None而导致的程序出错
2)UserDefinedRoleMaker和UserDefinedCollectiveRoleMaker的构造函数中,增加对current_id, worker_num, role, server_endpoints等的检查

@123malin 123malin requested a review from seiriosPlus August 1, 2019 15:02
@123malin 123malin closed this Sep 3, 2019
@123malin 123malin reopened this Sep 3, 2019
Copy link
Collaborator

@seiriosPlus seiriosPlus left a comment

Choose a reason for hiding this comment

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

LGTM

@seiriosPlus seiriosPlus changed the title Optimize fleet API: add input check for some interfaces, test=develop Optimize fleet API: add input check for some interfaces Sep 5, 2019
@frankwhzhang frankwhzhang self-requested a review September 6, 2019 05:22
Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@123malin 123malin merged commit a25a716 into PaddlePaddle:develop Sep 6, 2019
seiriosPlus pushed a commit to seiriosPlus/Paddle that referenced this pull request Dec 9, 2019
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.

4 participants