Skip to content

Commit 0e2b27e

Browse files
ONNX Compat issues with latest skl2onnx
In order for models to work against SQL Edge the target_opset parameter needs to be set
1 parent 2d57804 commit 0e2b27e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/azure-sql-edge/deploy-onnx.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ onnx_model_path = 'boston1.model.onnx'
179179
onnxmltools.utils.save_model(onnx_model, onnx_model_path)
180180
```
181181

182+
> [!NOTE]
183+
> You may need to set the target_opset parameter for skl2onnx.convert_sklearn function, if there is a mismatch between ONNX runtime version in SQL Edge and skl2onnx packge. See [SQL Edge Release notes](https://docs.microsoft.com/en-us/azure/azure-sql-edge/release-notes) to get the ONNX runtime version corresponding for the release and pick the target_opset for ONNX runtime based on the [ONNX backward compatibility matrix](https://github.com/microsoft/onnxruntime/blob/master/docs/Versioning.md#version-matrix).
184+
182185
## Test the ONNX model
183186

184187
After converting the model to ONNX format, score the model to show little to no degradation in performance.

0 commit comments

Comments
 (0)