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

Adjust sync cycle #328

Merged
merged 6 commits into from
Mar 22, 2018
Merged

Adjust sync cycle #328

merged 6 commits into from
Mar 22, 2018

Conversation

jetfuel
Copy link
Collaborator

@jetfuel jetfuel commented Mar 20, 2018

Roughly keep the sync happens every 15~25 seconds.

@jetfuel jetfuel self-assigned this Mar 20, 2018
@jetfuel
Copy link
Collaborator Author

jetfuel commented Mar 20, 2018

fixes #326

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.

Logic seems good, but need to follow google c style.

if (data_->parent()->meta.ToSync()) {
Sync();
}
CHECK(data_);
Copy link
Contributor

Choose a reason for hiding this comment

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

The c++ code should follow google c style, indent 2 spaces not 4 spaces.

clang-format can format c++ code automatically.

@jetfuel jetfuel requested a review from daming-lu March 21, 2018 22:39
@jetfuel
Copy link
Collaborator Author

jetfuel commented Mar 21, 2018

Updated.

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

@jetfuel jetfuel merged commit 2267c4e into PaddlePaddle:develop Mar 22, 2018
@jetfuel jetfuel deleted the adjustSyncCycle branch March 22, 2018 17:34
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