Skip to content

Fix bug in tensorflow tests. #218

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

Merged
merged 2 commits into from
Jan 20, 2017
Merged

Fix bug in tensorflow tests. #218

merged 2 commits into from
Jan 20, 2017

Conversation

robertnishihara
Copy link
Collaborator

@robertnishihara robertnishihara commented Jan 19, 2017

The tests were causing problems because depending on how tasks got scheduled, we might be calling get_weights without ever having called set_weights so the weights were uninitialized.

This was because we were breaking the abstraction that workers are stateless..

ray.env.net2[0].set_weights(weights)

# Get the weights.
def swap_weights(weights1, weights2):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you get rid of this and replace the call below with set_and_get_weights?

@pcmoritz pcmoritz merged commit 7151ed5 into ray-project:master Jan 20, 2017
@pcmoritz pcmoritz deleted the bug branch January 20, 2017 04:29
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