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。
我该怎么修改了
全部评论
相关推荐
12-07 08:37
深圳职业技术学院 数据采集 标题党了哈,但是确实想让牛u们看看,我的简历,和我的思路,想走个专升本,然后积累个3年经验就跳大厂,这种曲线救国有戏吗?我搞的是爬虫逆向板块(全端爬虫),顺便看看有没有佬帮我推一下寒假实习(坐标深圳)
点赞 评论 收藏
分享
查看7道真题和解析 点赞 评论 收藏
分享