deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

3.1.1 batch dimension is unspecified

Open MbProg opened this issue 5 years ago • 1 comments

Hello, in the book in 3.1.1 it states:

Consider the following example:

> from keras import layers
> layer = layers.Dense(32, input_shape=(784,))

We’re creating a layer that will only accept as input 2D tensors where the first dimension is 784 (axis 0, the batch dimension, is unspecified, and thus any value would be accepted).

Here it says that axis 0 is unspecified. I don't understand that. Isn't axis 0 specified by 784? 784 is the size of axis 0. So, why it says that it is unspecified? And why it says that any value would be accepted? Hasn't it to be of shape (784,) to be accepted?

MbProg avatar Mar 08 '19 11:03 MbProg

Definitely axis 0 is specified. It should be (axis 1, the batch dimension, is unspecified...)

RorisangSitoboli avatar Sep 02 '19 09:09 RorisangSitoboli