File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
_unittests/ut_translate_api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def setUp(self):
20
20
self .maxDiff = None
21
21
22
22
def test_exp (self ):
23
- onx = start (opset = 19 ).vin ("X" ).Exp ().rename ("Y" ).vout ().to_onnx ()
23
+ onx = start (opset = 19 , ir_version = 11 ).vin ("X" ).Exp ().rename ("Y" ).vout ().to_onnx ()
24
24
self .assertIsInstance (onx , ModelProto )
25
25
self .assertIn ("Exp" , str (onx ))
26
26
ref = ReferenceEvaluator (onx )
@@ -69,7 +69,7 @@ def light_api(
69
69
70
70
def test_zdoc (self ):
71
71
onx = (
72
- start (opset = 19 )
72
+ start (opset = 19 , ir_version = 11 )
73
73
.vin ("X" )
74
74
.reshape ((- 1 , 1 ))
75
75
.Transpose (perm = [1 , 0 ])
@@ -119,7 +119,7 @@ def light_api(
119
119
check_model (model )
120
120
121
121
def test_exp_f (self ):
122
- onx = start (opset = 19 ).vin ("X" ).Exp ().rename ("Y" ).vout ().to_onnx ()
122
+ onx = start (opset = 19 , ir_version = 11 ).vin ("X" ).Exp ().rename ("Y" ).vout ().to_onnx ()
123
123
self .assertIsInstance (onx , ModelProto )
124
124
self .assertIn ("Exp" , str (onx ))
125
125
ref = ReferenceEvaluator (onx )
You can’t perform that action at this time.
0 commit comments