File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
onnx_diagnostic/reference Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def run(
237237 assert all (
238238 self .runtime_info [o ].value is not None for o in outputs
239239 ), "Not implemented yet when one output is None."
240- fres = [self .runtime_info [o ].value .tensor for o in outputs ]
240+ fres = [self .runtime_info [o ].value .tensor for o in outputs ] # type: ignore[union-attr]
241241
242242 # clean previous execution
243243 for k in feeds :
@@ -305,12 +305,12 @@ def run_with_values(
305305 assert all (
306306 self .runtime_info [o ].value is not None for o in outputs
307307 ), "Not implemented yet when one output is None."
308- res = [torch_ops .OpRunValue (self .runtime_info [o ].value .tensor ) for o in outputs ] # type: ignore[assignment, union-attr]
308+ res2 = [torch_ops .OpRunValue (self .runtime_info [o ].value .tensor ) for o in outputs ] # type: ignore[assignment, union-attr]
309309
310310 # clean previous execution
311311 for k in self .input_names :
312312 self .runtime_info [k ].clean_value ()
313313 for o in self .output_names :
314314 self .runtime_info [o ].clean_value ()
315315
316- return res [0 ] if len (res ) == 1 else tuple (res )
316+ return res2 [0 ] if len (res2 ) == 1 else tuple (res2 ) # type: ignore[index, return-value, arg-type]
You can’t perform that action at this time.
0 commit comments