paddle.v2.infer() prints logs, and currently no way to suppress
已关闭
paddle.v2.infer() prints logs, and currently no way to suppress
Created by: juliecbd
If we call paddle.v2.infer(), this prints logs every time, and there is currently no way to suppress. Could we fix this issue?
probs = paddle.infer(
output_layer=predict, parameters=parameters, input=test_data)
[INFO 2017-06-07 12:06:37,678 networks.py:1482] The input order is [pixel]
[INFO 2017-06-07 12:06:37,678 networks.py:1488] The output order is [__fc_layer_2__]
Created by: lcy-seso
Please refer to this issue https://github.com/PaddlePaddle/Paddle/issues/2015
you can add this to your script
logger = logging.getLogger('paddle') logger.setLevel(logging.WARN)
Created by: juliecbd
Thank you. I think it’s a good idea to document this for other users.
On Jun 7, 2017, at 8:05 PM, Cao Ying notifications@github.com wrote:
Please refer to this issue #2015 (closed) https://github.com/PaddlePaddle/Paddle/issues/2015 you can add this to your script
logger = logging.getLogger('paddle') logger.setLevel(logging.WARN) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PaddlePaddle/Paddle/issues/2415#issuecomment-306985392, or mute the thread https://github.com/notifications/unsubscribe-auth/AbSLuNcnshoo0h2EnOcS3K7lg4_WbY7qks5sB2T5gaJpZM4NzJto.