How to get URL link on X (Twitter) App
In a nutshell, to execute let's say an addition between two tensors, we have to make sure that they have the same shape. To achieve that, we stretch the dimensions of the smaller tensor to match the size of the corresponding dimensions of the larger tensor.
In other words, when building ml models we'd like that the estimated probability of an example belonging to a particular class is as close as possible to the actual frequency of this class.