How to get rid of tensorflow verbose messages with Keras?

0 votes
I am trying out the tensorflow Keras backend. It keeps printing these overly verbose messages to the terminal which kind of ruins the the output of the probar logger. Such as the following:

h 1/200
   4608/3629568 [..............................] - ETA: 849s - loss: 1.1816I tensorflow/core/common_runtime/gpu/pool_allocator.cc:244] PoolAllocator: After 4208 get requests, put_count=4193 evicted_count=1000 eviction_rate=0.238493 and unsatisfied allocation rate=0.264971
I tensorflow/core/common_runtime/gpu/pool_allocator.cc:256] Raising pool_size_limit_ from 100 to 110
 

How can I make tensorflow quite? Is there any proper solution?
Jan 24 in Python by ana1504.k
• 7,870 points
210 views

1 answer to this question.

0 votes
If you are using TensorFlow 0.12, you can set the TF_CPP_MIN_LOG_LEVEL environment variable to filter out log messages. For example, you can start python this way to avoid the INFO-level messages (such as the "Raising pool_size_limit_" message in your quest):

$ TF_CPP_MIN_LOG_LEVEL=1 python ...
answered Jan 24 by SDeb
• 13,160 points

Related Questions In Python

+1 vote
1 answer

How to replace id with attribute corresponding to id of another table?

Use the following query statement and let ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 56,520 points
26 views
0 votes
1 answer

How to get the size of a string in Python?

If you are talking about the length ...READ MORE

answered Jun 4, 2018 in Python by ariaholic
• 7,340 points
73 views
0 votes
1 answer

How to replace id with attribute corresponding to id of another table?

Try looking the given link for better ...READ MORE

answered Oct 3, 2018 in Python by Priyaj
• 56,520 points
22 views
0 votes
1 answer

Index of predicted wrong data in Keras, how to find it?

Simply, use: model.predict() pred = model.predict(x_test) indices = [i for ...READ MORE

answered Sep 28, 2018 in Python by Priyaj
• 56,520 points
294 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 174 views
0 votes
1 answer

How to check the version of Python?

you can check the version of python ...READ MORE

answered Sep 25, 2018 in Python by SDeb
• 13,160 points
48 views
0 votes
1 answer

Is arr.__len__() the preferred way to get the length of an array in Python?

my_list = [1,2,3,4,5,6,7] len(my_list) # 7 The same works for ...READ MORE

answered Oct 8, 2018 in Python by SDeb
• 13,160 points
52 views