convert_version¶
- onnxscript.version_converter.convert_version(model: Model | ModelProto, target_version: int, fallback=None) None [source]¶
Convert the model to the specified ONNX opset version.
- Parameters:
model – The model to convert.
target_version – The target ONNX opset version.
fallback – Whether to fallback to the onnx version converter if the target version is not supported. Default is False.