Tensorflow logging messages do not appear

后端 未结 4 1008
情话喂你
情话喂你 2021-02-09 07:49

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:29

    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.

提交回复
热议问题