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, 2019 in Python by ana1504.k
• 7,910 points
4,684 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, 2019 by SDeb
• 13,300 points

Related Questions In Python

0 votes
0 answers
+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
• 58,020 points
2,495 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 aryya
• 7,460 points
1,393 views
0 votes
0 answers

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

Using SQLAlchemy, I can query a bunch ...READ MORE

Oct 3, 2018 in Python by eatcodesleeprepeat
• 4,710 points
711 views
+1 vote
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
• 58,020 points
5,883 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,458 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,300 points
805 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,300 points
958 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP