我继续获取与输入形状相关的错误。任何帮助都将不胜感激。谢谢!def deep_model():
model.add(keras.layers.Conv1D(filters=50, kernel_sizereturn model
of (“输入”+ str(input_index) +‘of layer’+
我是tensorflow的新手,我有一个问题:我能在我的conv2d中输入一个形状不是固定的输入吗?inputs.shape =(?,1568)当我训练我的神经网络时,我得到这样的信息:raise ValueError(f'Input {input_index} of layer "{layer_name}" ' ValueError: In
但不幸的是,我得到的是下面的错误ValueError: Input 0 of layer "conv1d_37" is incompatible with the layer: expectedmin_ndimfrom keras.models import Sequential
from keras.layers import Input, Embedding, Dense,
我注意到在用灰度图像训练CNN的时候。图像的维数被重塑为(x,y,1)。我认为这不应该是必要的,但当我尝试形状(x,y)时。我犯了个错误
ValueError: Input 0 of layerconv2d is incompatible with the layer: : expectedmin_ndim=4, foundndim=3.Full shape
我正在做一个简单的Conv1D,使用TensorFlow Keras来尝试一个时间序列数据集。: Input 0 of layersequential_13 is incompatible with the layer: : expectedmin_ndim=3, found ndim=2.Full shape received: (2, 1)
从各种SO,有人说这是由于输入数据的</e