from tensorflow.keras import layers, models, optimizers, losses, metrics
Import “tensorflow.keras” could not be resolved Pylance reportMissingImports
PD the code uses all these imports and runs fine.
Any ideas ?
from tensorflow.keras import layers, models, optimizers, losses, metrics
Import “tensorflow.keras” could not be resolved Pylance reportMissingImports
PD the code uses all these imports and runs fine.
Any ideas ?
Thanks, I am now importing from keras itself, as it is a separate module:
from keras import layers, models, optimizers, losses, metrics
Then no errors @chunduriv
Instead, you can also import from Tensorflow, as shown below
import tensorflow
from tensorflow import keras
from keras import layers, models, optimizers, losses, metrics
Thank you!