1You can use this:
2import os
3import tensorflow as tf
4os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
5
6In detail:-
70 = all messages are logged (default behavior)
81 = INFO messages are not printed
92 = INFO and WARNING messages are not printed
103 = INFO, WARNING, and ERROR messages are not printed