原因: AMSgrad只支持2017年12月11日后发行的keras版本 解决办法: pip install --upgrade keras 转载于:https://www.cnblogs.com/llfctt/p/9401336.html