Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
rachguo authored and rachguo committed Oct 26, 2023
1 parent 8a995fe commit 379903a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_tools_add_pre_post_processing_to_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ def test_hfbert_tokenizer_optional_output(self):
s = ort.InferenceSession(str(output_model), so, providers=["CPUExecutionProvider"])

result = s.run(None, {s.get_inputs()[0].name: np.array([[input_text[0], input_text[1]]])})

self.assertEqual(len(result), 2)

self.assertEqual(np.allclose(result[0], ref_output[0]), True)
self.assertEqual(np.allclose(result[1], ref_output[1]), True)
Expand Down

0 comments on commit 379903a

Please sign in to comment.