Disable QNNPACK tests if pytorch is not built with it. (#26427)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26427
Use the new macro USE_PYTORCH_QNNPACK to enable testing with qnnpack
Test Plan:
test caffe2/test:quantized -- TestQNNPackOps
Summary (total time 4.96s):
PASS: 0
FAIL: 0
SKIP: 4
caffe2/test:quantized - test_qlinear_qnnpack (test_quantized.TestQNNPackOps)
caffe2/test:quantized - test_qnnpack_add (test_quantized.TestQNNPackOps)
caffe2/test:quantized - test_qnnpack_relu (test_quantized.TestQNNPackOps)
caffe2/test:quantized - test_qnnpack_maxpool2d (test_quantized.TestQNNPackOps)
FATAL: 0
TIMEOUT: 0
OMIT: 0
Reviewed By: ljk53
Differential Revision: D17459791
fbshipit-source-id: 3798fc270d22123b8807c9c63f12b9940981b115