我是靠谱客的博主 自然飞鸟,这篇文章主要介绍解决AttributeError: module ‘keras.utils.generic_utils‘ has no attribute ‘populate_dict_with_module**,现在分享给大家,希望可以做个参考。
问题:使用keras 2.2.4和tensorflow2.5组合时,import keras出现错误
AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'
分析:版本适配性导致问题
解决方案:可以使用tf自带的keras或降低tensorflow版本与keras相匹配,例如使用tensorflow=1.13.1版本
最后
以上就是自然飞鸟最近收集整理的关于解决AttributeError: module ‘keras.utils.generic_utils‘ has no attribute ‘populate_dict_with_module**的全部内容,更多相关解决AttributeError:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复