qnnpack quantized activations: fix memory format issues (#46077) (#46217)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46077
Some of QNNPACK quantized kernels were not handling NHWC correctly,
the data written respected the input format but the memory flag
was always set to contiguous. This PR
1. adds testing for NHWC for qnnpack activations
2. fixes those activations which did not set the memory format on the output
Test Plan:
```
python test/test_quantization.py TestQuantizedOps.test_qhardsigmoid
python test/test_quantization.py TestQuantizedOps.test_leaky_relu
python test/test_quantization.py TestQuantizedOps.test_hardswish
python test/test_quantization.py TestQNNPackOps.test_qnnpack_tanh
python test/test_quantization.py TestQNNPackOps.test_qnnpack_sigmoid
```
Imported from OSS
Reviewed By: supriyar
Differential Revision: D24213257
fbshipit-source-id: 764fb588a8d8a0a6e6e4d86285904cdbab26d487
Co-authored-by: Vasiliy Kuznetsov <vasiliy@fb.com>