解决AttributeError: module ‘keras.utils.generic_utils‘ has no attribute ‘populate_dict_with_module**

2023-05-16

问题:使用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版本

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

解决AttributeError: module ‘keras.utils.generic_utils‘ has no attribute ‘populate_dict_with_module** 的相关文章

随机推荐