mirror of
https://github.com/pytorch/pytorch.git
synced 2026-10-28 18:56:51 +08:00
This reverts commit 0800934744.
Reverted https://github.com/pytorch/pytorch/pull/164560 on behalf of https://github.com/georgehong due to We have signals breaking and hundreds of unmigrated internal call sites of torch.testing.assert_allclose. Not a mechanical rename either: the removed wrapper had different default tolerances and passed equal_nan=True, check_dtype=False, check_stride=False, so callers need a semantics-preserving migration first. Sorry about the churn, the team will need to discuss how to proceed with updating usage sites ([comment](https://github.com/pytorch/pytorch/pull/164560#issuecomment-5428263080))
269 B
269 B
torch.testing
.. automodule:: torch.testing
.. currentmodule:: torch.testing
.. autofunction:: assert_close
.. autofunction:: make_tensor
.. autofunction:: assert_allclose