Wednesday, April 27, 2022

[FIXED] How to get rid of "Using TensorFlow backend." in Jupyter Notebook

Issue

When I run this code, this "Using TensorFlow backend" always pops up.

enter image description here

Even after I tried

import warnings
warnings.filterwarnings('ignore')
warnings.simplefilter('ignore)

I wonder whether I can get rid of it to make my notebook look cleaner.


Solution

Starting with tf-2.0 Keras is now the official high-level API of TensorFlow packaged within it. Not sure if it is a possibility in your case, but using tf-2.0 should remove this error. Here's a Quick Start guide if needed.
For most of the simple cases, just changing the import statement to import tensorflow.keras as keras gets it going.



Answered By - jdsurya
Answer Checked By - Willingham (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.