Avoid tensorflow print on standard error

前端 未结 3 1318
温柔的废话
温柔的废话 2020-12-16 05:18

anyone knows if there is a method to prevent tensorflow from polluting standard error with gpus\' memory allocation log?. I noted that when the following command is executed

3条回答
  •  轮回少年
    2020-12-16 05:50

    Defaults to 0, so all logs are shown. Set TF_CPP_MIN_LOG_LEVEL to 1 to filter out INFO logs, 2 to additionall filter out WARNING, 3 to additionally filter out ERROR.

提交回复
热议问题