DEV Community

Cover image for Remove Unnecessary Warnings in Tensorflow GPU
Md. Fahim Bin Amin
Md. Fahim Bin Amin

Posted on

Remove Unnecessary Warnings in Tensorflow GPU

If you don't want unnecessary warning messages to distract you when using Tensorflow GPU, simply use:

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
Enter fullscreen mode Exit fullscreen mode

Image description

It won't show you the unnecessary warnings anymore like code block 1.

Top comments (0)