The following error appears when I import the keras library
from keras.models import Sequential
from keras.layers import Dense, LSTM
AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects
I am working on windows 10 my keras version is: 2.4.3 and tensorflow version is 2.5.0rc0 I also installed cuda to solve the problem but it was not effective
utils. to_categorical. Converts a class vector (integers) to binary class matrix.
What is a "backend"? Keras is a model-level library, providing high-level building blocks for developing deep learning models. It does not handle itself low-level operations such as tensor products, convolutions and so on.
Imports work perfectly with Tensorflow 2.4.1, Try this way
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, LSTM
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With