Skip to content

Commit 1898bab

Browse files
committed
Remove misuse of CheckAtModel.
1 parent 4f99d56 commit 1898bab

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/Microsoft.ML.StandardLearners/Standard/LinearPredictor.cs

-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ protected override void SaveCore(ModelSaveContext ctx)
466466
// LinearModelStatistics: model statistics (optional, in a separate stream)
467467

468468
base.SaveCore(ctx);
469-
ctx.CheckAtModel();
470469
ctx.SetVersionInfo(GetVersionInfo());
471470

472471
Contracts.AssertValueOrNull(_stats);

src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs

-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ public static MulticlassLogisticRegressionPredictor Create(IHostEnvironment env,
566566
protected override void SaveCore(ModelSaveContext ctx)
567567
{
568568
base.SaveCore(ctx);
569-
ctx.CheckAtModel();
570569
ctx.SetVersionInfo(GetVersionInfo());
571570

572571
Host.Assert(_biases.Length == _numClasses);

0 commit comments

Comments
 (0)