Skip to content

Commit

Permalink
Fix M1 incompatibility issue for ONNX integration (#2114)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurChen189 authored May 12, 2023
1 parent 0009387 commit a913b52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public void testOnnxEncoder() throws Exception{
searcher.set_onnx_query_encoder("SpladePlusPlusEnsembleDistil");

Map<String, Float> encoded_query = searcher.encode_with_onnx("here is a test");
assertEquals(encoded_query.get("here"), EXPECTED_ENCODED_QUERY.get("here"));
assertEquals(encoded_query.get("a"), EXPECTED_ENCODED_QUERY.get("a"));
assertEquals(encoded_query.get("test"), EXPECTED_ENCODED_QUERY.get("test"));
assertEquals(encoded_query.get("here"), EXPECTED_ENCODED_QUERY.get("here"), 2e-4);
assertEquals(encoded_query.get("a"), EXPECTED_ENCODED_QUERY.get("a"), 2e-4);
assertEquals(encoded_query.get("test"), EXPECTED_ENCODED_QUERY.get("test"), 2e-4);
}
}

0 comments on commit a913b52

Please sign in to comment.