4

I want to see the debug info for tensorflow c++ core, not python client. TensorFlow config INFO level default. How to modify the level to DEBUG.

1 Answer 1

7

There are two types of logging. The INFO/WARNING/etc. logging statements are displayed by default. VLOG(n) statements are only displayed for n=0 by default. For more verbose logging, there is an environmental variable:

export TF_CPP_MIN_VLOG_LEVEL=2

See https://github.com/tensorflow/tensorflow/pull/6375 for details.

This gets you gorgeous messages such as:

2017-07-07 14:26:43.712063: I tensorflow/core/common_runtime/executor.cc:1557] Process node: 3 step 1 _retval_Const_0_0 = _Retval[T=DT_INT32, index=0, _device="/job:localhost/replica:0/task:0/cpu:0"](Const) is dead: 0
2017-07-07 14:26:43.712074: I tensorflow/core/common_runtime/executor.cc:2345] Delete frame 
Sign up to request clarification or add additional context in comments.

1 Comment

TF_CPP_MIN_VLOG_LEVEL has been renamed to TF_CPP_MAX_VLOG_LEVEL. Source: github.com/tensorflow/tensorflow/commit/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.