Compare two tensors or non-tensor numbers for their equality. Add msg=blah to add an additional comment to when assert fails.
(actual, expected, **kwargs)
| 127 | |
| 128 | |
| 129 | def torch_assert_equal(actual, expected, **kwargs) -> None: |
| 130 | """ |
| 131 | Compare two tensors or non-tensor numbers for their equality. |
| 132 | Add msg=blah to add an additional comment to when assert fails. |
| 133 | """ |
| 134 | torch.testing.assert_close(actual, expected, rtol=0.0, atol=0.0, **kwargs) |
| 135 | |
| 136 | |
| 137 | def torch_assert_close(actual, expected, **kwargs) -> None: |
no outgoing calls