Hi,
you need to squeeze your input tensor, so that input and target are of same size.
Just like the warning says: broadcasting ruins your loss computation.
In your specific case, PyTorch would broadcast both tensors to tensors of size ([100, 100]).