问题描述
我的模型有这个简单的层
states = Input(shape=(len(inputFinal),))
这应该生成(328,None)但不知道为什么当我检查倒置时
model.inputs
[<tf.Tensor 'input_1:0' shape=(None,328) dtype=float32>]
当我尝试将数据传递给模型时,层不正确
value.shape
(328,)
model.predict(value)
Input 0 of layer dense is incompatible with the layer: expected axis -1 of input shape to have value 328 but received input with shape [None,1]
我找不到问题了,有什么主意吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)