System information
- OS version/distro: Windows 10
Steps To Recreate The Issue
-
Create and save a PredictorModel to disk using the entry point api.
-
Try and convert the model to ONNX format using the entry point api.
-
Notice that SaveOnnxCommand.GetPipe only cycles through the transforms and never encounters the logistic regression node.
This might be happening because ExecuteGraphCommand.GetOutputToPath saves a TlcModule.DataKind.PredictorModel to disk in step (1). And then, ExecuteGraphCommand.SetInputFromPath loads a TlcModule.DataKind.TransformModel from disk in step (2) (apparently a consequence of SaveOnnxCommand.Arguments.Model being of type TransformModel). PredictorModelImpl and TransformModelImpl don't appear to be compatible from a serialization point of view.
Source code / logs
See here for an ml.net test which demonstrates the issue.
System information
Steps To Recreate The Issue
Create and save a PredictorModel to disk using the entry point api.
Try and convert the model to ONNX format using the entry point api.
Notice that
SaveOnnxCommand.GetPipeonly cycles through the transforms and never encounters the logistic regression node.This might be happening because
ExecuteGraphCommand.GetOutputToPathsaves aTlcModule.DataKind.PredictorModelto disk in step (1). And then,ExecuteGraphCommand.SetInputFromPathloads aTlcModule.DataKind.TransformModelfrom disk in step (2) (apparently a consequence ofSaveOnnxCommand.Arguments.Modelbeing of typeTransformModel).PredictorModelImplandTransformModelImpldon't appear to be compatible from a serialization point of view.Source code / logs
See here for an ml.net test which demonstrates the issue.