!49885 Fix sin onnx ut

Merge pull request !49885 from JuiceZ/dev_sin
This commit is contained in:
i-robot 2023-03-07 12:52:28 +00:00 committed by Gitee
commit b4afa4fcd1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -81,4 +81,4 @@ def test_sin_onnx():
sess = ort.InferenceSession(onnx_model.SerializeToString())
input_name = sess.get_inputs()[0].name
result = sess.run([], {input_name: np_array})
assert np.allclose(list(ms_output)[0].asnumpy(), result[0])
assert np.allclose(ms_output.asnumpy(), result[0])