Commit cdf60396 authored by Jennifer's avatar Jennifer Committed by Jennifer Wei
Browse files

change message for test_model.py compare

parent 19c81588
...@@ -202,4 +202,4 @@ class TestModel(unittest.TestCase): ...@@ -202,4 +202,4 @@ class TestModel(unittest.TestCase):
out_repro = out_repro["sm"]["positions"][-1] out_repro = out_repro["sm"]["positions"][-1]
out_repro = out_repro.squeeze(0) out_repro = out_repro.squeeze(0)
self.assertTrue(torch.max(torch.abs(out_gt - out_repro)) < 1e-3) compare_utils.assert_mean_abs_diff_small(out_gt, out_repro, 1e-3)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment