2016-06-07 43 views
9

我正在尝试张量凯拉斯后端。它会将这些过于详细的消息打印到终端,这种类型会破坏probar记录器的输出。如下所示。如何摆脱与凯拉斯tensorflow详细信息

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 

我怎样才能使tensorflow相当?我一直在查看文档,找不到任何类似.theanorc文件的设置。

+3

希望这是有益... https://开头github上。 com/tensorflow/tensorflow/issues/566 –

回答

3

如果您使用的是TensorFlow 0.12,则可以设置TF_CPP_MIN_LOG_LEVEL环境变量来筛选出日志消息。例如,你可以开始python这种方式避免了INFO -level消息(如在你的追求“提高pool_size_limit_”消息):

$ TF_CPP_MIN_LOG_LEVEL=1 python ... 
+0

这些日志级别在哪里记录? – Seanny123