imgs = imgs.reshape([-1,28,28,1]) 数据的shape改成这样就可以了,数据集用的fashion mnist ValueError: Error when checking input: expected conv2d_1_input to have 4 dimensions, but got array with shape - lypbendlf - 博客园