Skip to content

Update Onnx Convert documentation, limited to ONNX-ML target platforms #505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Update Onnx Convert documentation, limited to ONNX-ML target platforms #505

merged 1 commit into from
Jul 12, 2018

Conversation

CESARDELATORRE
Copy link
Contributor

This PR is just updating the documentation/comments for the ML.NET Convert/export to ONNX.
The ML.NET export/convert feature uses ONNX-ML (not the regular ONNX specification).
Currently, the only target platform supported by ONNX-ML is Windows ML.
The current comments in the documentation have examples mentioning Apple CoreML and TensorFlow, which are currently not supported by ONNX-ML.
This PR is simply fixing the comments/documentation.

Further details on ONNX and ONNX-ML:
ONNX is not a single specification but two different variations of the standard. The neural-network-only (DNN) ONNX variant recognizes only tensors as input and output types, while ONNX-ML is a classical Machine Learning variant.
ONNX-ML is part of the ONNX standard that provides functionality for classic ML and pipelines. It is a superset of core ONNX.
Frameworks like Caffe2 and CNTK will not support ONNX-ML since they are focused on DNN.

Apple CoreML and other ONNX backends might support ONNX-ML in the future, but they currently don't, so our example should not mention Apple CoreML and TensorFlow as sample target platforms to use after exporting the ONNX file. At least, not yet.

Copy link
Member

@markusweimer markusweimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

/// you can create a model using ML.NET (or any ONNX compatible toolkit), convert it to ONNX and
/// then the ONNX model can be converted into say, CoreML, TensorFlow or WinML model
/// to run on the respective runtime.
/// you can create a model using ML.NET, export it to an ONNX-ML model file,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please clarify here what ONNX-ML is? May be add a line before that is a superset of ONNX and some explanation to its history.

Copy link
Contributor

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomFinley TomFinley merged commit 6503167 into dotnet:master Jul 12, 2018
eerhardt pushed a commit to eerhardt/machinelearning that referenced this pull request Jul 27, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants