OnnxExportExtensions.ConvertToOnnx Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream) |
Convert the specified ITransformer to ONNX format and writes to a stream. |
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Int32, Stream) |
Convert the specified ITransformer to ONNX format and writes to a stream. |
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream, String[]) |
Convert the specified ITransformer to ONNX format and writes to a stream. |
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream)
Convert the specified ITransformer to ONNX format and writes to a stream.
public static void ConvertToOnnx (this Microsoft.ML.ModelOperationsCatalog catalog, Microsoft.ML.ITransformer transform, Microsoft.ML.IDataView inputData, System.IO.Stream stream);
static member ConvertToOnnx : Microsoft.ML.ModelOperationsCatalog * Microsoft.ML.ITransformer * Microsoft.ML.IDataView * System.IO.Stream -> unit
<Extension()>
Public Sub ConvertToOnnx (catalog As ModelOperationsCatalog, transform As ITransformer, inputData As IDataView, stream As Stream)
Parameters
- catalog
- ModelOperationsCatalog
The class that ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream) attached to.
- transform
- ITransformer
The ITransformer that will be converted into ONNX format.
- inputData
- IDataView
The input of the specified transform.
- stream
- Stream
The stream to write the protobuf model to.
Applies to
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Int32, Stream)
Convert the specified ITransformer to ONNX format and writes to a stream.
public static void ConvertToOnnx (this Microsoft.ML.ModelOperationsCatalog catalog, Microsoft.ML.ITransformer transform, Microsoft.ML.IDataView inputData, int opSetVersion, System.IO.Stream stream);
static member ConvertToOnnx : Microsoft.ML.ModelOperationsCatalog * Microsoft.ML.ITransformer * Microsoft.ML.IDataView * int * System.IO.Stream -> unit
<Extension()>
Public Sub ConvertToOnnx (catalog As ModelOperationsCatalog, transform As ITransformer, inputData As IDataView, opSetVersion As Integer, stream As Stream)
Parameters
- catalog
- ModelOperationsCatalog
The class that ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Int32, Stream) attached to.
- transform
- ITransformer
The ITransformer that will be converted into ONNX format.
- inputData
- IDataView
The input of the specified transform.
- opSetVersion
- Int32
The OpSet version to use for exporting the model. This value must be greater than or equal to 9 and less than or equal to 12
- stream
- Stream
The stream to write the protobuf model to.
Applies to
ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream, String[])
Convert the specified ITransformer to ONNX format and writes to a stream.
public static void ConvertToOnnx (this Microsoft.ML.ModelOperationsCatalog catalog, Microsoft.ML.ITransformer transform, Microsoft.ML.IDataView inputData, System.IO.Stream stream, params string[] outputColumns);
static member ConvertToOnnx : Microsoft.ML.ModelOperationsCatalog * Microsoft.ML.ITransformer * Microsoft.ML.IDataView * System.IO.Stream * string[] -> unit
<Extension()>
Public Sub ConvertToOnnx (catalog As ModelOperationsCatalog, transform As ITransformer, inputData As IDataView, stream As Stream, ParamArray outputColumns As String())
Parameters
- catalog
- ModelOperationsCatalog
The class that ConvertToOnnx(ModelOperationsCatalog, ITransformer, IDataView, Stream) attached to.
- transform
- ITransformer
The ITransformer that will be converted into ONNX format.
- inputData
- IDataView
The input of the specified transform.
- stream
- Stream
The stream to write the protobuf model to.
- outputColumns
- String[]
List of output columns we want to keep.