Skip to content

Commit 8769fc4

Browse files
committed
remove assert
1 parent d245d78 commit 8769fc4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

onnx_diagnostic/reference/ort_evaluator.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,6 @@ def _get_sess(
450450
and (not isinstance(self.torch_or_numpy, bool) or not self.torch_or_numpy)
451451
else InferenceSessionForTorch
452452
)
453-
assert (
454-
cls is InferenceSessionForTorch
455-
), f"ERROR: {string_type(inputs, with_shape=True)}"
456453
try:
457454
sess = cls(onx, **self.session_kwargs)
458455
except (

0 commit comments

Comments
 (0)