AttributeError: 'NoneType' object has no attribute '_inbound_nodes'
错误信息:
Keras AttributeError 'NoneType' object has no attribute '_inbound_nodes'
原因:
只要使用Model,就必须保证该函数内全为layer而不能有其他函数,如果有其他函数必须用Lambda封装为layer。
比如现在用到concat这个很基本的操作:
model = Model(inputs=input, ...
原创
2020-05-04 14:12:15 ·
4684 阅读 ·
0 评论