我正在尝试学习tensorflow,并且正在尝试从sklearn导入手写数据集,但我收到以下错误: ValueError: Input 0 of layerconv2d is incompatiblewith the layer: : expectedmin_ndim=4, found ndim=3.Full shape received: [None, 1797, 64] 我
我注意到在用灰度图像训练CNN的时候。图像的维数被重塑为(x,y,1)。我认为这不应该是必要的,但当我尝试形状(x,y)时。我犯了个错误
ValueError: Input 0 of layerconv2d is incompatible with the layer: : expectedmin_ndim=4, foundndim=3.Fu