Skip to content

Commit

Permalink
change threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
tianleiwu committed Feb 13, 2024
1 parent 5c7e6b2 commit 77347c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/src/test/java/ai/onnxruntime/InferenceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ private void runProvider(OrtProvider provider) throws OrtException {
// CoreML gives slightly different answers on a 2020 13" M1 MBP
assertArrayEquals(expectedOutput, resultArray, 1e-2f);
} else {
assertArrayEquals(expectedOutput, resultArray, 1e-6f);
assertArrayEquals(expectedOutput, resultArray, 1e-5f);
}
} catch (OrtException e) {
throw new IllegalStateException("Failed to execute a scoring operation", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private static void runProvider(OrtProvider provider, OrtSession.SessionOptions
OnnxValue resultTensor = result.get(0);
float[] resultArray = TestHelpers.flattenFloat(resultTensor.getValue());
assertEquals(expectedOutput.length, resultArray.length);
assertArrayEquals(expectedOutput, resultArray, 1e-6f);
assertArrayEquals(expectedOutput, resultArray, 1e-5f);
} catch (OrtException e) {
throw new IllegalStateException("Failed to execute a scoring operation", e);
}
Expand Down

0 comments on commit 77347c5

Please sign in to comment.