Introduction
We tell the model the shape of the data it will see so it can learn correctly.
When building a neural network to process images of a fixed size.
When creating a model that takes sequences like sentences or time series.
When you want to make sure your data fits the model's expected format.
When you start defining the first layer of a neural network.
When you want to avoid errors caused by mismatched data shapes.