'Input to reshape is a tensor with 192 values, but the requested shape has 3
can someone help me solve this erorr?
***look_back = 3
trainX, trainY = create_dataset(train, look_back)
def create_keras_model():
model = Sequential()
model.add(tf.keras.layers.InputLayer(input_shape=(None,1)))
model.add(tf.keras.layers.LSTM(55))
model.add(Dense(1))
model.summary()
def create_keras_model():
model = Sequential()
model.add(tf.keras.layers.InputLayer(input_shape=(None,1)))
model.add(tf.keras.layers.LSTM(55))
model.add(Dense(1))
model.summary()
return model***
the erorr is : InvalidArgumentError: Graph execution error:
Input to reshape is a tensor with 192 values, but the requested shape has 3 [[{{node Reshape}}]] [[StatefulPartitionedCall/StatefulPartitionedCall/ReduceDataset]] [Op:__inference_pruned_5531]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
