繁体   English   中英

AttributeError:模块“keras.utils.generic_utils”没有属性“populate_dict_with_module_objects”

[英]AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'

导入keras库出现如下错误

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

导入与 Tensorflow 2.4.1 完美配合,试试这种方式

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, LSTM

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM