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

python 版本? #44

Closed
originme opened this issue Nov 3, 2019 · 1 comment
Closed

python 版本? #44

originme opened this issue Nov 3, 2019 · 1 comment

Comments

@originme
Copy link

originme commented Nov 3, 2019

我的python是3.7版本的,tensorflow-gpu 安装不了了,最好能把依赖包版本给出来比较好。

@originme
Copy link
Author

originme commented Nov 3, 2019

13

ConfigProto disappeared in tf 2.0, so an elegant solution is:

import tensorflow as tf
and then replace:

tf.ConfigProto by tf.compat.v1.ConfigProto

In fact, the compatibility built in 2.0 to get tf 1.: tf.compat.v1 is really helpful.

Useful link: Migrate your tensorflow 1. code to tensorflow 2.: https://www.tensorflow.org/guide/migrate

https://stackoverflow.com/questions/56127592/attributeerror-module-tensorflow-has-no-attribute-configproto/56132697

@originme originme closed this as completed Nov 3, 2019
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