Tensorflow 2.0.0-alpha0: tf.logging.set_verbosity
In TensorFlow 2.0
you can still access tf.logging
via tf.compat.v1
:
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
EDIT
Here, in the Deprecated namespaces, it is suggested to use Python logging
module:
tf.logging - Python
logging
module can be used instead.
So you should use:
import logging
logging.getLogger("tensorflow").setLevel(logging.ERROR)
before importing tensorflow
.
As per official documentation
Many APIs are either gone or moved in TF 2.0. Some of the major changes include removing tf.app, tf.flags, and tf.logging
https://www.tensorflow.org/alpha/guide/effective_tf2