0

When I run the tensorflow script, I should be able to observe only the expected verbosity in the terminal. Not the tensorflow Session start messages.

  • 2
    Possible duplicate of [Disable Tensorflow debugging information](https://stackoverflow.com/questions/35911252/disable-tensorflow-debugging-information) – dsesto Dec 04 '17 at 08:18
  • Definite duplicate of [Disable Tensorflow debugging information](https://stackoverflow.com/questions/35911252/disable-tensorflow-debugging-information) – markroxor Mar 18 '19 at 11:06

1 Answers1

1

Try using:

import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'  # or any {'0', '1', '2'}

Or

tf.logging.set_verbosity(tf.logging.ERROR)
Arnav
  • 276
  • 3
  • 11