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

merge fluid dist tests #8573

Merged
merged 5 commits into from
Feb 27, 2018
Merged

Conversation

typhoonzero
Copy link
Contributor

@typhoonzero typhoonzero commented Feb 26, 2018

Fix #8571
Fix #8598

gongweibao
gongweibao previously approved these changes Feb 26, 2018
Copy link
Contributor

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

The demo code is too long, so can we reduce them?

if is_local:
train_loop(fluid.default_main_program())
else:
port = os.getenv("PADDLE_INIT_PORT", "6174")
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thought both ways are OK, PADDLE_INIT_PORT is also used in v2 when calling paddle.init()

raise AssertionError("Fit a line cost is too large, {0:2.2}".format(
avg_loss_value[0]))

if is_local:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is is_local necessary? We can run the local mode with the code under book directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it, this PR merge book and book_dist folder.

Yancey1989
Yancey1989 previously approved these changes Feb 27, 2018
Copy link
Contributor

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

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

LGTM, please fix the conflict, it's better to merge this PR ASAP to make sure dist demo code is running correctly.

@typhoonzero typhoonzero dismissed stale reviews from Yancey1989 and gongweibao via 0c4714a February 27, 2018 07:02
Copy link
Contributor

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

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

LGTM

@typhoonzero typhoonzero merged commit 4d4322a into PaddlePaddle:develop Feb 27, 2018
@typhoonzero typhoonzero deleted the fix_dist_demos branch February 27, 2018 09:18
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