7

重庆出台措施支持民营经济发展 人才支撑受关注

#define VLOG_IS_ON(lvl) \
   ((lvl) <= ::tensorflow::internal::LogMessage::MinVLogLevel())
#endif

#define VLOG(lvl)      \
  if (TF_PREDICT_FALSE(VLOG_IS_ON(lvl))) \
  ::tensorflow::internal::LogMessage(__FILE__, __LINE__, tensorflow::INFO)

const int INFO = 0;            // base_logging::INFO;
const int WARNING = 1;         // base_logging::WARNING;
const int ERROR = 2;           // base_logging::ERROR;
const int FATAL = 3;           // base_logging::FATAL;
const int NUM_SEVERITIES = 4;  // base_logging::NUM_SEVERITIES;

单词elegant 联想记忆:
EMBAGlobal is the only programme in the top 10 that saw a slight drop in the average salary of its alumni compared with last year (the other nine recorded strong increases).
Snap, however, has sunk to about $15 after initially rallying from its IPO price of $17 in March, damping some expectation of further activity involving so-called decacorns, tech companies that have achieved valuations of $10bn or more through private funding.

VLOG(INFO) and VLOG(WARN)

Does this result reasonable?

| |
  • export TF_CPP_MIN_LOG_LEVEL=0 export TF_CPP_MIN_VLOG_LEVEL=3 , if you want more message, just increase the TF_CPP_MIN_VLOG_LEVEL value – Y00 Feb 18 at 2:58
13

You control the log level via TF_CPP_MIN_LOG_LEVEL (not TF_CPP_MIN_VLOG_LEVEL), which you want to set to 1 in your case.

TF_CPP_MIN_VLOG_LEVEL brings in extra debugging information and actually works the other way round: its default value is 0 and as it increases, more debugging messages are logged in.

So the VLOG level is not your usual INFO, WARNING, etc. LOG level, but something different and ranked inversely. If you peek into the code, you see that LOG is used with log labels (LOG(INFO) << message) but VLOG is used with plain numbers (VLOG(2) << message).

VLOG messages are actually always logged at the INFO log level. It means that in any case, you need a TF_CPP_MIN_LOG_LEVEL of 0 to see any VLOG message.

| |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.