WARNING:tensorflow:Model was constructed with shape (None, 100, 1) for input KerasTensor(type_spec=TensorSpec(shape=(None, 100, 1), dtype=tf.float32, name='input_1'), name='input_1', description="created by layer 'input_1'"), but it was called on an input with incompatible shape (None, 88, 1). WARNING:tensorflow:Model was constructed with shape (None, 100, 1) for input KerasTensor(type_spec=TensorSpec(shape=(None, 100, 1), dtype=tf.float32, name='input_2'), name='input_2', description="created by layer 'input_2'"), but it was called on an input with incompatible shape (None, 137, 1).
时间: 2024-04-26 11:20:36 浏览: 222
tensorflow报错
这是一个 TensorFlow 的警告信息,提示模型的输入与实际输入的维度不匹配。根据警告信息,模型的输入应该是一个形状为 (None, 100, 1) 的张量,但是实际输入的张量形状不一致,分别是 (None, 88, 1) 和 (None, 137, 1)。这可能是由于模型的输入设置不正确或者实际输入数据的维度不符合要求导致的。如果想要解决这个问题,需要检查模型的输入设置以及实际输入数据的维度是否匹配。
阅读全文