Skip to content

Commit

Permalink
fix float pointing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqing-feng committed Jun 14, 2024
1 parent 8aae77b commit fe07293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ipex/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def test_compare_to_transformers(self, model_arch):
# Compare tensor outputs
self.assertTrue(torch.allclose(outputs.logits, transformers_outputs.logits, atol=1e-4))
self.assertTrue(torch.equal(outputs.logits, loaded_model_outputs.logits))
self.assertTrue(torch.equal(outputs.logits, init_model_outputs.logits))
self.assertTrue(torch.allclose(init_model_outputs.logits, transformers_outputs.logits, atol=1e-4))

@parameterized.expand(SUPPORTED_ARCHITECTURES)
def test_pipeline(self, model_arch):
Expand Down

0 comments on commit fe07293

Please sign in to comment.