Check if QNNPACK is supported before set (#26935)
Summary:
ghstack-source-id: 0e873a56a879cab30b7fa1778e65d9cb89474f05
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26935
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26936
Differential Revision: D17617452
Pulled By: IvanKobzarev
fbshipit-source-id: 4dbcdc55044dd2050b28062baa8b58c8387a1e4e