I use tensorflow 1.2.0
installed with pip install
.
When I run samples that include
import logging
tf.logging.set_verbosity(tf.
What I usually do to control the TensorFlow logging is to have this piece of code before any TensorFlow import
import os
import logging
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '0'
logging.getLogger("tensorflow").setLevel(logging.WARNING)
import tensorflow as tf
I'd be happy to hear about any better solution.