解决Keras报错AttributeError: 'NoneType' object has no attribute 'inbound_nodes'
背景
在用Keras的时候遇到了这个报错
AttributeError: 'NoneType' object has no attribute 'inbound_nodes'
原因
原来是对Tensor操作的方法用错了,做了一个扩展操作,将一个2D的张量扩展成一个3D的张量
使用了K.repeat()的方法,这个方法返回的是一个Tensor,而不是一个Layer,当然没有入节点inbound_n...
原创
2018-11-01 14:38:41 ·
23157 阅读 ·
0 评论