Tensorflow logging messages do not appear

后端 未结 4 874
别那么骄傲
别那么骄傲 2021-02-09 07:38

I use tensorflow 1.2.0 installed with pip install.

When I run samples that include

import logging
tf.logging.set_verbosity(tf.         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-09 08:17

    I tried to set TF_CPP_MIN_LOG_LEVEL but still not work. after check this thread https://github.com/tensorflow/tensorflow/issues/1258

    as it said

    It's TF_CPP_MIN_VLOG_LEVEL, not TF_CPP_MIN_LOG_LEVEL Also, note that if TF_CPP_MIN_LOG_LEVEL is set, then TF_CPP_MIN_VLOG_LEVEL values are ignored

    then I unset TF_CPP_MIN_LOG_LEVEL and set TF_CPP_MIN_VLOG_LEVEL again, it works.

    the two macro makes me confused hope it helps.

提交回复
热议问题