我有一个不同形状的numpy数组列表。我尝试将这个列表转换成一个numpy数组,以便为Keras创建一个批量样本。在输出中,我想要一个形状为(batch_size,?,20)的数组,其中'?我试试这个: a = np.random.random((5,20))
b = np.random.random
我一直在我的LSTM层中收到这个错误。ValueError: Errorwhencheckinginput: expected lstm_input to have 3 dimensions, but got array with shape(None, 3)
为什么形状是(无,3),我如何解决这个问题?
我有15张大小为28x28的图片。因此,我的images.shape是(15,28,28)。然而,我得到了这个错误:
ValueError: Errorwhencheckinginput: expected conv2d_22_input to have 4 dimensions, butgot arra
当涉及到keras ad tensorflow时,我是一个新手,所以我真的需要一些帮助来尝试解决我在代码中遇到的这个问题。我正在尝试运行一个自动编码器程序。然而,当我尝试运行程序时,我得到了如下错误: ValueError: errorwhencheckinginput:期望input_1具有2维,<em