python中module ‘keras.optimizers‘ has no attribute ‘Adam‘错误

版本问题

从optimizers.py文件中可以看出,应该把keras.optimizers.Adam改成keras.optimizers.adam_v2.Adam

python中module ‘keras.optimizers‘ has no attribute ‘Adam‘错误_第1张图片

python中module ‘keras.optimizers‘ has no attribute ‘Adam‘错误_第2张图片

你可能感兴趣的:(python,python)