[英]WARNING:tensorflow:Model was constructed with shape (None, 188) for input, but it was called on an input with incompatible shape (188,)
Can someone help me to fix this?有人可以帮我解决这个问题吗? tensorflow is really annoying.
张量流真的很烦人。
WARNING:tensorflow:Model was constructed with shape (None, 188) for input KerasTensor(type_spec=TensorSpec(shape=(None, 188), dtype=tf.float32, name='input_9'), name='input_9', description="created by layer 'input_9'"), but it was called on an input with incompatible shape (188,).警告:张量流:模型是用形状 (None, 188) 构建的输入 KerasTensor(type_spec=TensorSpec(shape=(None, 188), dtype=tf.float32, name='input_9'), name='input_9', description ="created by layer 'input_9'"),但它是在形状不兼容的输入 (188,) 上调用的。
You seem to be missing a dimension.你似乎错过了一个维度。 Try batching your data:
尝试批量处理您的数据:
train_set = train_set.batch(32)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.