We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25dffe6 commit 3cabe6aCopy full SHA for 3cabe6a
tools/ir/model_zoo_test/model_zoo_test.py
@@ -18,6 +18,7 @@
18
import traceback
19
20
import onnx
21
+import onnxruntime as ort
22
import tqdm
23
from onnx import hub
24
@@ -46,6 +47,8 @@ def test_model(model_info: hub.ModelInfo) -> float:
46
47
serialized, model, ignore_initializer_value_proto=True
48
)
49
onnx.checker.check_model(serialized)
50
+ # Check the model can be loaded with onnxruntime
51
+ ort.InferenceSession(serialized.SerializeToString())
52
return end - start
53
54
0 commit comments