A small image classifier is fed a batch of colour photographs. The batch arrives as a 4-D tensor whose axes are (batch, height, width, channels):
The network then runs the pipeline below.
| Stage | Output shape |
|---|---|
| Input batch | |
| Flatten | |
| Dense 1 (with bias) | |
| Dense 2 (with bias) | |
| Dense 3 (with bias) |
How many learnable numbers does this network hold in total — every weight and every bias, across all three dense layers?
Your answer is an exact whole number.
Once you get it right, the reasoning behind the answer shows up here.