We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03fbeab commit 7c015dcCopy full SHA for 7c015dc
1 file changed
onnx_diagnostic/export/api.py
@@ -187,7 +187,11 @@ def to_onnx(
187
import onnx_ir as ir
188
import onnx_ir.passes.common as common_passes
189
190
- opset = target_opset if isinstance(target_opset, int) else target_opset[""]
+ opset = (
191
+ 18
192
+ if target_opset is None
193
+ else (target_opset if isinstance(target_opset, int) else target_opset[""])
194
+ )
195
196
irfunctions = [
197
ir.from_proto(
0 commit comments