Disable NumPy and TF2 related warnings (#463)
This commit is contained in:
1 parent
c9738280fd
commit
103d4477eb
1 file changed
+7
@@ -0,0 +1,7 @@
|
|||||||
|
# This gets rid of NumPy FutureWarnings that occur at TF import
|
||||||
|
import warnings
|
||||||
|
warnings.filterwarnings('ignore',category=FutureWarning)
|
||||||
|
|
||||||
|
# This gets rid of TF 2.0 related deprecation warnings
|
||||||
|
import tensorflow as tf
|
||||||
|
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
|
||||||
Reference in new issue
Block a user