我的输入是一个包含 64 个整数的数组。
model = Sequential()
model.add( Input(shape=(68,), name="input"))
model.add(Conv1D(64, 2, activation="relu", padding="same", name="convLayer"))
Run Code Online (Sandbox Code Playgroud)
我的训练集中有 10,000 个这样的数组。我应该指定这个以便 conv1D 工作吗?
我遇到了可怕的事情
ValueError: Input 0 of layer convLayer is incompatible with the layer: : expected min_ndim=3, found ndim=2. Full shape received: [None, 68]
Run Code Online (Sandbox Code Playgroud)
错误,我真的不明白我需要做什么。