Last active
November 5, 2019 04:12
-
-
Save hiepph/ba76b353a133ce99cf665e1af533abe2 to your computer and use it in GitHub Desktop.
Python warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
tf.logging.set_verbosity(tf.logging.ERROR) # level 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#In detail:- | |
#0 = all messages are logged (default behavior) | |
#1 = INFO messages are not printed | |
#2 = INFO and WARNING messages are not printed | |
#3 = INFO, WARNING, and ERROR messages are not printed | |
export TF_CPP_MIN_LOG_LEVEL=2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PYTHONWARNINGS=default # Warn once per call location | |
PYTHONWARNINGS=error # Convert to exceptions | |
PYTHONWARNINGS=always # Warn every time | |
PYTHONWARNINGS=module # Warn once per calling module | |
PYTHONWARNINGS=once # Warn once per Python process | |
PYTHONWARNINGS=ignore # Never warn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment