From cdf86701e30c4ae56c74ad570e50d8522a0a4be9 Mon Sep 17 00:00:00 2001 From: serengil Date: Sun, 13 Dec 2020 20:18:00 +0300 Subject: [PATCH] tf logs disabled --- tests/unit_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/unit_tests.py b/tests/unit_tests.py index 5b204f0..cc5bbd4 100644 --- a/tests/unit_tests.py +++ b/tests/unit_tests.py @@ -11,10 +11,8 @@ import json import time import tensorflow as tf - -#----------------------------------------- - -tf_version = int(tf.__version__.split(".")[0]) +import logging +tf.get_logger().setLevel(logging.ERROR) #-----------------------------------------