I'm newbie in Tensorflow and I'm developing a notebook in Google Colaboratory.
On my first notebooks I got a message saying to update to Tensorflow v.2.
Now, in another notebook, I get the following message:
The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
If I do that, am I using Tensorflow v2?
I'm confuse because of the v1
in tf.compat.v1.get_default_graph
.
All the error messages are:
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:66: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:541: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:4432: The name tf.random_uniform is deprecated. Please use tf.random.uniform instead.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:4267: The name tf.nn.max_pool is deprecated. Please use tf.nn.max_pool2d instead.
I think I can't change that code on keras.