Improve error message when input is not in the right format (#25928)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25928
Improved error message
ghstack-source-id: 89854172
Test Plan:
if given the input of wrong dimension, the message earlier
```
[QConv2D] each dimension of output tensor should be greater than 0
```
message now
```
Given groups=1, weight of size 20, 5, 5, 1, expected input (NHWC) 10, 1, 32, 32 to have 1 channels, but got 32 channels instead
```
Reviewed By: jianyuh
Differential Revision: D17287290
fbshipit-source-id: d91573d6d69f2a5e0e615ffbd47a0bd233636a0b