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

replace deprecated tf.initialize_all_variables #184

Merged
merged 1 commit into from
Nov 29, 2017

Conversation

DjangoPeng
Copy link
Member

@DjangoPeng DjangoPeng commented Nov 28, 2017

Replace deprecated tf.initialize_all_variables with tf.global_variables_initializer. The deprecated API has been removed after 2017-03-02. When users run the example, they would get the WARNING as below:

WARNING:tensorflow:From /usr/local/lib/python2.7/dist-packages/tensorflow/python/util/tf_should_use.py:175: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.

It should be updated with the new and official API tf.global_variables_initializer.

@k8s-ci-robot
Copy link

Hi @DjangoPeng. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@jlewi jlewi left a comment

Choose a reason for hiding this comment

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

Thanks

@jlewi
Copy link
Contributor

jlewi commented Nov 29, 2017

/ok-to-test

@jlewi jlewi merged commit 84241c2 into kubeflow:master Nov 29, 2017
@DjangoPeng DjangoPeng deleted the build-dev branch November 29, 2017 05:00
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