-
Notifications
You must be signed in to change notification settings - Fork 942
Update mnist_dist.py using tensorflow1.6 #247
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
Conversation
tf.train.Supervisor is deprecated in tensorflow1.6, so I update it using tf.train.MonitoredTrainingSession.
|
Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! 😄 |
|
Thanks for your contribution! Can you make sure to sign the CLA license? |
|
Thanks for your support! I have signed the CLA license, it works now. |
examples/mnist/spark/mnist_dist.py
Outdated
| is_chief=(task_index == 0), | ||
| checkpoint_dir=logdir, | ||
| hooks=hooks, | ||
| ) as mon_sess: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code throws an error for me (when trying the Standalone instructions). Also, this wouldn't work for args.mode == "inference". Can you update accordingly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you show me the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File "/Users/leewyang/devpub/TensorFlowOnSpark/examples/mnist/spark/mnist_spark.py", line 18, in <module>
import mnist_dist
File "/Users/leewyang/devpub/TensorFlowOnSpark/examples/mnist/spark/mnist_dist.py", line 117
else:
^
IndentationError: expected an indented block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'am coming! I have fix some problems and I can run successfully on Hadoop Cluster.
Meanwhile, I also update the usage of Tensorboard. :)
tf.train.Supervisor is deprecated in tensorflow1.6, so I update it using tf.train.MonitoredTrainingSession. Meanwhile, I update the usage of Tensorboard.