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。
我该怎么修改了
全部评论
相关推荐
11-03 13:11
广东东软学院 游戏后端
后端转测开第一人:再怎么劝退也没用的 某些群体总以为在一个幸存者偏差的软件上看见了极少数秋招上岸某个大厂的个例就幻想上了 事实上自己打开ssob沟通1000+连个小厂面试都没 点赞 评论 收藏
分享
点赞 评论 收藏
分享
基恩士成长空间 426人发布