Changes to enable per channel support on dynamic linear. (#37623)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37623
Follows the same strategy as static linear.
Same kernel now supports both per-channel and per-tensor linear.
Fixed fully connected test.
Test Plan:
qnnpack tests
q8gemm
fully-connected-test
Imported from OSS
Differential Revision: D21339040
fbshipit-source-id: 479d847c16b42c926acb67357dc3bdd2d0bd6ca4