Skip to content

Commit

Permalink
fix error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao committed Dec 7, 2023
1 parent 32c4efc commit 06f8980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ def func(x):
self.assertEqual(_zero_rate(grad[0]), _zero_rate(grad_ref[0]), rtol=1e-3, atol=1e-4)

def test_torch_ops_overloaded(self):
with self.assertRaisesRegex(RuntimeError, "failed to many any schema"):
with self.assertRaisesRegex(RuntimeError, "failed to match any schema"):
torch.ops.aten.add("a", 1)
self.assertEqual("ab", torch.ops.aten.add("a", "b"))
a, b = torch.rand(3, 4), torch.rand(3, 4)
Expand Down

0 comments on commit 06f8980

Please sign in to comment.