-
Notifications
You must be signed in to change notification settings - Fork 526
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
Tensorflow 1.14.0 API Deprecation Warnings #40
Comments
I am facing with this too |
Also having this problem |
You can see the solution here. Upgrading code is noted. https://www.tensorflow.org/beta/guide/upgrade |
@jack-kavanagh Have you upgraded Tensorflow to version 2.0 ?Have already solved the problem? |
@tangjie77wd yes I fixed the issue by upgrading to TF 2.0 |
@jack-kavanagh My Tensorflow version is 1.13 and i use pip --upgrade tensorflow but get nothing.How do you upgrade Tensorflow ? I really do not want build Tensorflow totally again because the process is painful for me so i just want to upgrade it. |
@tangjie77wd I tried to use pip --upgrade tensorflow, but this didn't help. I ended up using pip install tensorflow==2.0.0-beta1 (tensorflow-gpu==2.0.0-beta1) for the gpu version. |
@jack-kavanagh Thank you very much ! I have test "pip install tensorflow==2.0.0-beta1" for my cpu version successfully because it outputs 2.0.0-beta1 when i inputs print(tf.version). However,the warning is still the same when i run my tensorflow c++ project .By the way ,i have not changed anything of my tensorflow c++ project because i do not know what should be replaced . Do i need change something like the project properties or active something since i have upgrade tensorflow from 1.13.1 to 2.0.0 ? |
The below link solved my issue. |
only adjust "import compat.v1.tensorflow as tf" |
Tensorflow is deprecating the v1 API, and moving it into
tf.compat.v1
. In addition, some elements of the API are being replaced by new API.Example output:
This issue is distinct from #3, which refers to the
keep_dims
deprecation.I understand that I can filter warnings to suppress them, but sometimes they contain useful notifications that are relevant elsewhere in my codebase, so I'd prefer not to if I can help it!
Is there a roadmap to migrate to non-deprecated Tensorflow APIs?
The text was updated successfully, but these errors were encountered: