pytorch
5ac87cde - tests for diagnostics in callable `msg` in `torch.testing.assert_close` (#60254)

Commit
3 years ago
tests for diagnostics in callable `msg` in `torch.testing.assert_close` (#60254) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60254 Before we only tested that the correct error message is returned if `msg` is passed as callable. This adds tests that make sure that - the inputs passed to the callable are the same inputs passed to `torch.assert_close` and - the `diagnostics` namespace has the same attributes and types as documented. Test Plan: Imported from OSS Reviewed By: ngimel Differential Revision: D29556354 Pulled By: mruberry fbshipit-source-id: 9793c6d86fda842b6329381fc03b945eee878464
Author
Parents
Loading