diff --git a/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs b/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs index b7f6c4da871..1367249c480 100644 --- a/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs +++ b/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs @@ -320,7 +320,7 @@ private protected override bool SaveAsOnnxCore(OnnxContext ctx, RoleMappedSchema if (!ctx.ContainsColumn(featName)) return false; Contracts.Assert(ctx.ContainsColumn(featName)); - return mapper.SaveAsOnnx(ctx, outputNames, ctx.GetVariableName(featName)); + return mapper.SaveAsOnnx(ctx, new[] { outputNames[1] }, ctx.GetVariableName(featName)); } private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) =>