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

Workers not synced, Chief worker finishes first #6

Open
tbake0155 opened this issue Nov 4, 2018 · 0 comments
Open

Workers not synced, Chief worker finishes first #6

tbake0155 opened this issue Nov 4, 2018 · 0 comments

Comments

@tbake0155
Copy link

First I want to say thanks for the example, it is very helpful to those of us just getting started with distributed tensorflow.

I had an issue where only the chief worker would finish, and once the chief worker finished the other workers would hang.

I fixed the issue based on some advice I found in another post but I thought I would make you aware and if possible get some clarification on if it is a system problem on my end or truly a bug in your code.

The fix was as simple as changing the hook to this:

sync_replicas_hook = opt.make_session_run_hook(is_chief, num_tokens=0)

from this:

sync_replicas_hook = opt.make_session_run_hook(is_chief)

With that change in place, all workers are synchronized for each step of each epoch and they all finish.

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

No branches or pull requests

1 participant