pytorch/torch/testing
Digant Desai b2054d3025 Prepare for an update to the XNNPACK submodule (#72642)
Summary:
- Target Sha1: ae108ef49aa5623b896fc93d4298c49d1750d9ba
- Make USE_XNNPACK a dependent option on cmake minimum version 3.12
- Print USE_XNNPACK under cmake options summary, and print the
  availability from collet_env.py
- Skip XNNPACK based tests when XNNPACK is not available
    - Add SkipIfNoXNNPACK wrapper to skip tests
- Update cmake version for xenial-py3.7-gcc5.4 image to 3.12.4
    - This is required for the backwards compatibility test.
      The PyTorch op schema is XNNPACK dependent. See,
      aten/src/ATen/native/xnnpack/RegisterOpContextClass.cpp for
      example. The nightly version is assumed to have USE_XNNPACK=ON,
      so with this change we ensure that the test build can also
      have XNNPACK.
- HACK: skipping test_xnnpack_integration tests on ROCM

Pull Request resolved: https://github.com/pytorch/pytorch/pull/72642

Reviewed By: kimishpatel

Differential Revision: D34456794

Pulled By: digantdesai

fbshipit-source-id: 85dbfe0211de7846d8a84321b14fdb061cd6c037
(cherry picked from commit 6cf48e7b64d6979962d701b5d493998262cc8bfa)
2022-02-25 00:39:15 +00:00
..
_internal Prepare for an update to the XNNPACK submodule (#72642) 2022-02-25 00:39:15 +00:00
__init__.py refactor assert_close to be more modular (#67794) 2021-11-19 12:37:16 -08:00
_comparison.py only compare attributes for meta tensors (#72508) 2022-02-17 02:33:08 +00:00
_core.py use torch.testing.assert_equal in TestCase.assertEqual (#67796) 2022-01-27 08:33:55 +00:00
_creation.py disallow requires_grad=True in make_tensor for integral inputs (#67149) 2021-10-26 16:19:28 -07:00
_deprecated.py change sparse COO comparison strategy in assert_close (#68728) 2022-01-12 06:43:50 -08:00
_legacy.py Check if the iterator is valid before dereferencing it (#72405) 2022-02-23 18:33:46 +00:00