Keras Model To Plot Gives None, Dimensions
I am trying to plot VGG16 architecture diagram using Keras. However, i see the below image with None, some dimension. What does None mean, is that a bug ? from keras.utils import
Solution 1:
The None
dimension in the shape tuple refers to the batch dimension which simply means that the layer can accept input of any size. For example, a dataset (e.g. MNIST) could have the following shape tuple (60000, 28, 28, 1)
but the input layer's shape would be (None, 28, 28, 1)
.
References:
Baca Juga
- How To Classify Both Sentiment And Genres From Movie Reviews Using Cnn Tensorflow
- Valueerror When Loading A Previously Saved Retrained Vgg16 Model Using Keras
- Valueerror: Input 0 Of Layer Sequential_16 Is Incompatible With The Layer: Expected Ndim=5, Found Ndim=4. Full Shape Received: [none, 224, 224, 3]
Post a Comment for "Keras Model To Plot Gives None, Dimensions"