pytorch/torch/testing
Philip Meier 1f74e082e2 only compare attributes for meta tensors (#72508)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72508

Todo:

- [x] document this behavior
- [x] add tests

Test Plan: Imported from OSS

Reviewed By: zou3519

Differential Revision: D34262452

Pulled By: ezyang

fbshipit-source-id: bc5c9653d5c3ad5c6efccc9c8e0efc0d28e15104
(cherry picked from commit 233142c88e)
2022-02-17 02:33:08 +00:00
..
_internal only compare attributes for meta tensors (#72508) 2022-02-17 02:33:08 +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 deprecate device getter from torch.testing namespace (#63844) 2021-09-29 02:40:52 -07:00