I was using tensorflow==2.4.1 and everything works fine.
Today I update tensorflow to v2.11.0, and error occurs at code like this:
tensorflow.keras.models.load_model(model_path) # try to load a model
The error says:
AttributeError: module ‘tensorflow’ has no attribute ‘keras’
The same code run fine when I was using tensorflow==2.4.1, how comes this error?
pip install -U tensorflow # tensorflow already up to date pip install -U keras # already satisfied