python求助
为什么图一的代码能够运行,改成图二的就会报错?
AttributeError: 'NoneType' object has no attribute '_inbound_nodes'
错误信息:
Keras AttributeError 'NoneType' object has no attribute '_inbound_nodes'
原因:
只要使用Model,就必须保证该函数内全为layer而不能有其他函数,如果有其他函数必须用Lambda封装为layer。
我该怎么修改了
AttributeError: 'NoneType' object has no attribute '_inbound_nodes'
错误信息:
Keras AttributeError 'NoneType' object has no attribute '_inbound_nodes'
原因:
只要使用Model,就必须保证该函数内全为layer而不能有其他函数,如果有其他函数必须用Lambda封装为layer。
我该怎么修改了
全部评论
相关推荐
点赞 评论 收藏
分享
风间琉璃617:985Java后端,最近刚开始投简历基本没面试😵隔壁班同学前两周投的京东直接过了,给我看了面经基本只问了八股和项目,八股也挺简单的,这哥们暑假跟我一块在一家小厂实习过,我俩简历也都差不多,结果现在我投的京东还在泡池子😭找工作难道真是运气大于一切吗
点赞 评论 收藏
分享
