[英]input and output shape in convulational neural network
ValueError: Input 0 of layer sequential_30 is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: [None, None, None]
First of all, the details that you have provided is very less.首先,您提供的详细信息非常少。 From the details that you have provided, I have interpreted that you are trying to pass a numpy array
of dimension 3 to a CNN Layer
.根据您提供的详细信息,我已经解释了您正在尝试将维度为 3 的numpy array
传递给CNN Layer
。 A CNN Layer
only accepts 4-dimensional numpy arrays
, but you have given a 3-dimensional numpy array
as the input. CNN Layer
仅接受4-dimensional numpy arrays
,但您已将3-dimensional numpy array
作为输入。 In order to solve this problem, reshape the array to a 4D array.为了解决这个问题,将数组reshape为4D数组。 If you provide ur code, I will be able to provide you the exact lines that you have to use.如果您提供您的代码,我将能够为您提供您必须使用的确切行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.