[英]How to get rid of tensorflow verbose messages with Keras
I am trying out the tensorflow Keras backend. 我正在尝试张量流Keras后端。 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? 我该如何制作张量流量呢? I have been looking through the documentation and I can't find anything like a .theanorc file for settings.
我一直在浏览文档,我找不到类似.theanorc文件的设置。
If you are using TensorFlow 0.12, you can set the TF_CPP_MIN_LOG_LEVEL
environment variable to filter out log messages. 如果您使用的是TensorFlow 0.12,则可以设置
TF_CPP_MIN_LOG_LEVEL
环境变量以过滤掉日志消息。 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): 例如,您可以通过这种方式启动
python
以避免INFO
级别的消息(例如您的任务中的“Raising pool_size_limit_”消息):
$ TF_CPP_MIN_LOG_LEVEL=1 python ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.