MCPcopy
hub / github.com/pytorch/pytorch / assertNotEqual

Method assertNotEqual

torch/testing/_internal/common_utils.py:3489–3492  ·  view source on GitHub ↗
(self, x, y, msg: Optional[str] = None, *,                                       # type: ignore[override]
                       atol: Optional[float] = None, rtol: Optional[float] = None, **kwargs)

Source from the content-addressed store, hash-verified

3487 )
3488
3489 def assertNotEqual(self, x, y, msg: Optional[str] = None, *, # type: ignore[override]
3490 atol: Optional[float] = None, rtol: Optional[float] = None, **kwargs) -> None:
3491 with self.assertRaises(AssertionError, msg=msg):
3492 self.assertEqual(x, y, msg, atol=atol, rtol=rtol, **kwargs)
3493
3494 def assertEqualTypeString(self, x, y) -> None:
3495 # This API is used simulate deprecated x.type() == y.type()

Calls 2

assertRaisesMethod · 0.95
assertEqualMethod · 0.95