Skip to content

Reformat fleet API#17135

Merged
seiriosPlus merged 11 commits intoPaddlePaddle:developfrom
seiriosPlus:feature/fleet_optimize
May 9, 2019
Merged

Reformat fleet API#17135
seiriosPlus merged 11 commits intoPaddlePaddle:developfrom
seiriosPlus:feature/fleet_optimize

Conversation

@seiriosPlus
Copy link
Collaborator

@seiriosPlus seiriosPlus commented Apr 28, 2019

like title

@seiriosPlus seiriosPlus requested review from guru4elephant and xjqbest and removed request for guru4elephant and xjqbest April 29, 2019 02:35
@seiriosPlus seiriosPlus changed the title reformat fleet API [WIP]Reformat fleet API Apr 30, 2019
@seiriosPlus seiriosPlus requested review from guru4elephant and xjqbest and removed request for guru4elephant May 6, 2019 04:55
@seiriosPlus seiriosPlus changed the title [WIP]Reformat fleet API Reformat fleet API May 6, 2019
scopes(Scope|list): a Scope or a list of Scopes, default None.
executor(Executor): The executor to run for init server.
programs(Program|None): The program that need to run.
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

what if a user uses more than one scope , each for a specific main_program.
in this case, init_worker no longer supports this.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh,these scopes are passed to fleet in minimize,ignore the above.

from enum import Enum

from paddle.fluid.optimizer import SGD
from paddle.fluid.executor import Executor
Copy link
Member

Choose a reason for hiding this comment

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

why do you import Executor here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for value check, isinstance of

Copy link
Member

@guru4elephant guru4elephant left a comment

Choose a reason for hiding this comment

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

LGTM. You need to update official document with replicable examples and API docs.

@seiriosPlus seiriosPlus merged commit 565d309 into PaddlePaddle:develop May 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