0

I just imported the tensorflow module, can anyone tell me why this message keeps coming up on my console every time I run my program and how I can get rid of it?

enter image description here

EDIT: I found that using

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' 

before

import tensorflow

helped clear my console.

Mahirah
  • 25
  • 5
  • Hi, the errors are related to cuda, its libraries and the execution environment. Could you try this after importing tensorflow: import os os.system('cls') – smile Jul 20 '20 at 19:58
  • @smile Hi, I tried that, and those messages still keep coming up. – Mahirah Jul 20 '20 at 20:07
  • could you follow the discussion here [Create a way to control log message output](https://github.com/tensorflow/tensorflow/issues/1258) and this [debugging info](https://stackoverflow.com/questions/35911252/disable-tensorflow-debugging-information) , Thanks – smile Jul 20 '20 at 20:13
  • 1
    @smile thank you very much! I found that using import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' before importing tensorflow sorted out the problem! – Mahirah Jul 20 '20 at 21:32
  • It is a pleasure. You can post the answer you discovered so that others can benefit from it. Best – smile Jul 20 '20 at 21:36

0 Answers0