Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open log with DEBUG level for tensorflow c++ core, not python client

Tags:

tensorflow

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.

like image 828
Guangcong Liu Avatar asked Mar 09 '23 16:03

Guangcong Liu


1 Answers

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 
like image 104
Allen Lavoie Avatar answered May 19 '23 15:05

Allen Lavoie