Course 1 Week 2 Ungraded Lab: Beyond Hello World, A Computer Vision Example

Hi I was checking the layers of the model layer with model.summary and find out that the first layer flatten() output format (32,784) i understand the 784=28*28 but it should be (1,784) right ? i am bit confused if someone can explain,


May I ask which course you are attending?

32 refers to the batch size. Please follow rest of the dimensions after the batch dimension to better understand the layer output for each input.

introduction to TF for AI

it means the batch size is per defaut 32 if not mentionned ?

You are correct about the default batch size. Please read about batch_size under

Please post future threads in the appropriate course category, as you previously posted it in the general category.