Home > database >  How to get rid of "Using TensorFlow backend." in Jupyter Notebook
How to get rid of "Using TensorFlow backend." in Jupyter Notebook

Time:11-17

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.

CodePudding user response:

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.

  • Related