Skip to content

Commit

Permalink
Merge pull request #9 from flaviabeo/tolerance
Browse files Browse the repository at this point in the history
Adds tolerance params
  • Loading branch information
gkumbhat authored Jul 17, 2024
2 parents 59ae6d5 + 3cecf52 commit 0cf2c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/modules/text_embedding/test_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def test_encoding_order(loaded_model: EmbeddingModule, truncate_input_tokens):
not approx(e) == combined_vectors[i]
), "expected altered order to not match combined vectors"
assert not np.allclose(
e, combined_vectors[i]
e, combined_vectors[i], rtol=1e-05, atol=1e-08
), "expected altered order to not match combined"


Expand Down

0 comments on commit 0cf2c94

Please sign in to comment.