Skip to content

Commit

Permalink
Update TF_CPP_MIN_LOG_LEVEL
Browse files Browse the repository at this point in the history
(cherry picked from commit dcf8ed9)
  • Loading branch information
deliahu committed Aug 9, 2019
1 parent f766610 commit 1f60032
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/workloads/cortex/lib/tf_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@
}


CPP_LOG_LEVEL = {"DEBUG": "1", "INFO": "2", "WARN": "3", "ERROR": "4", "FATAL": "5"}


def set_logging_verbosity(verbosity):
tf.logging.set_verbosity(verbosity)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = str(tf.logging.__dict__[verbosity] / 10)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = CPP_LOG_LEVEL[verbosity]


def get_column_tf_types(model_name, ctx, training=True):
Expand Down

0 comments on commit 1f60032

Please sign in to comment.