Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Jun 4, 2024
1 parent f24ff44 commit 6a3c8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cuda/test_cudaops.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _addmul_shared_input_cuda(self, itype, op_type, shapea=(3, 2, 3), shapeb=(3,
sess = _ort.InferenceSession(model2.SerializeToString(), opts, providers=["CUDAExecutionProvider"])
got = sess.run(None, feeds1)
for i in range(2):
self.assertEqualArray(expected[i], got[i])
assert_almost_equal(expected[i], got[i])

@unittest.skipIf(not has_cuda(), reason="CUDA is missing")
def test_add_shared_input_cuda(self):
Expand Down

0 comments on commit 6a3c8b0

Please sign in to comment.