pytorch/torch/testing
Philip Meier 802dd2b725 change sparse COO comparison strategy in assert_close (#68728)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68728

This removes the ability for `assert_close` to `.coalesce()` the tensors internally. Additionally, we now also check `.sparse_dim()`. Sparse team: please make sure that is the behavior you want for all sparse COO comparisons in the future. #67796 will temporarily keep BC by always coalescing, but in the future `TestCase.assertEqual` will no longer do that.

cc nikitaved pearu cpuhrsch IvanYashchuk

Test Plan: Imported from OSS

Reviewed By: ngimel

Differential Revision: D33542996

Pulled By: mruberry

fbshipit-source-id: a8d2322c6ee1ca424e3efb14ab21787328cf28fc
2022-01-12 06:43:50 -08:00
..
_internal Remove deprecated cuDNN convolution ops (#71128) 2022-01-12 06:34:42 -08:00
__init__.py refactor assert_close to be more modular (#67794) 2021-11-19 12:37:16 -08:00
_comparison.py change sparse COO comparison strategy in assert_close (#68728) 2022-01-12 06:43:50 -08:00
_core.py Add meta support to tensor range factories (#67032) 2021-11-05 15:36:29 -07: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