Closed seungtaek94 closed 3 years ago
Hi,
For me using putenv("TF_CPP_MIN_LOG_LEVEL=3")
works perfectly. Perhaps you added it to your code late, and TF already started? Also you can try to run your executable like this:
TF_CPP_MIN_LOG_LEVEL=3 ./executable
I put putenv("TF_CPP_MIN_LOG_LEVEL=3")
code in top of my main function.
But i think TF already run. Even if i set the breakpoint before putenv
, TF logs are come up..
sorry for many questions. actually I m not friendly with c++..
Can u tell me when TF start..?
Are you running your code with optimization flags like -O3
. If so, can you try without?
Are you running your code with optimization flags like
-O3
. If so, can you try without?
I tried run the code with optimization flags /Od(disable) in VS but it shows same result .
I solved this problem.
Set /DELAYLOAD:"tensorflow.dll
(linker -> input -> DelayLoadDLLs in visual studio project setting).
Then write code that putenv("TF_CPP_MIN_LOG_LEVEL=3");
top of my main function.
I'm glad you finally made it work!
Hi.
Is there any way to disable tensorflow logging information that like below?
In python i can disable Tensorflow logging information like blow
I tried using
putenv("TF_CPP_MIN_LOG_LEVEL=3");
when i usingc++
with cppflow2 but it doesn't work :(