0

I am trying to import tensorflow.keras.applications in Google Colab. The imported module works fine. There is no compilation error. But, I am being shown a yellow curved underline, kind of a warning.

Error:

enter image description here

What is the problem that leads to such a warning?

Thank you.

ClaudiaR
  • 3,108
  • 2
  • 13
  • 27

1 Answers1

0

You are not the only one experiencing this, and it does not happen only in Google Colab. It is a bug in Tensorflow.

Since it is just a warning you could ignore it. However if you like having code completion like I do you can substitute your imports from this:

import tensorflow.keras.x 

To this:

import keras.api._v2.keras.x

Where x is the import you want to get.

ClaudiaR
  • 3,108
  • 2
  • 13
  • 27