44 implementations of CanSaveOnnx
Microsoft.ML.Data (22)
DataView\RowToRowMapperTransform.cs (1)
91bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _mapper is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false;
Prediction\Calibrator.cs (4)
305bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_mapper as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 750bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 1186bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true; 1702bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Prediction\CalibratorCatalog.cs (1)
247bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _calibrator is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false;
Scorers\GenericScorer.cs (1)
147bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (Bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Scorers\MulticlassClassificationScorer.cs (1)
91bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Scorers\PredictedLabelScorerBase.cs (1)
279bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (Bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Scorers\SchemaBindablePredictorWrapper.cs (1)
49bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (ValueMapper as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Transforms\ColumnConcatenatingTransformer.cs (1)
425public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\ColumnCopying.cs (1)
204public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\ColumnSelecting.cs (1)
731public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\Hashing.cs (1)
1476bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Transforms\KeyToValue.cs (1)
578public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\KeyToVector.cs (1)
610public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\Normalizer.cs (1)
724public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\SlotsDroppingTransformer.cs (1)
877public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\TransformBase.cs (1)
493bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => CanSaveOnnxCore;
Transforms\TypeConverting.cs (1)
390public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\ValueMapping.cs (1)
1034public bool CanSaveOnnx(OnnxContext ctx) => true;
Transforms\ValueToKeyMappingTransformer.cs (1)
712public bool CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.FastTree (1)
FastTree.cs (1)
2819bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
58bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
623public bool CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
601public bool CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.StandardTrainers (6)
Standard\LinearModelParameters.cs (1)
104bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
454bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
258bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
496bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _impl.CanSaveOnnx(ctx); 509public bool CanSaveOnnx(OnnxContext ctx) => Predictors.All(pred => (pred as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true);
Standard\Simple\SimpleTrainers.cs (1)
351bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => true;
Microsoft.ML.TimeSeries (1)
SequentialTransformerBase.cs (1)
754bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _mapper is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false;
Microsoft.ML.Transforms (11)
GcnTransform.cs (1)
605public bool CanSaveOnnx(OnnxContext ctx) => true;
MissingValueIndicatorTransformer.cs (1)
439public bool CanSaveOnnx(OnnxContext ctx) => true;
MissingValueReplacing.cs (1)
554public bool CanSaveOnnx(OnnxContext ctx) => true;
OptionalColumnTransform.cs (1)
539public bool CanSaveOnnx(OnnxContext ctx) => true;
Text\NgramTransform.cs (1)
742public bool CanSaveOnnx(OnnxContext ctx) => true;
Text\StopWordsRemovingTransformer.cs (2)
355public bool CanSaveOnnx(OnnxContext ctx) => true; 1066public bool CanSaveOnnx(OnnxContext ctx) => true;
Text\TextNormalizing.cs (1)
216public bool CanSaveOnnx(OnnxContext ctx) => (_parent._keepDiacritics && _parent._keepNumbers && _parent._keepPunctuations);
Text\TokenizingByCharacters.cs (1)
214public bool CanSaveOnnx(OnnxContext ctx) => true;
Text\WordEmbeddingsExtractor.cs (1)
327public bool CanSaveOnnx(OnnxContext ctx) => true;
Text\WordTokenizing.cs (1)
396public bool CanSaveOnnx(OnnxContext ctx) => true;
22 references to CanSaveOnnx
Microsoft.ML.Data (15)
DataView\RowToRowMapperTransform.cs (2)
91bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _mapper is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false; 222Host.Check(onnx.CanSaveOnnx(ctx), "Cannot be saved as ONNX.");
Model\Onnx\ICanSaveOnnx.cs (1)
53/// Save as ONNX. If <see cref="ICanSaveOnnx.CanSaveOnnx"/> is
Prediction\Calibrator.cs (4)
305bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_mapper as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 391if (!(calibrator?.CanSaveOnnx(ctx) == true && calibrator.SaveAsOnnx(ctx, new[] { outputNames[1], outputNames[2] }, featureColumnName))) 750bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 796Host.Check(((ICanSaveOnnx)this).CanSaveOnnx(ctx), "Called despite not being savable");
Prediction\CalibratorCatalog.cs (2)
247bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _calibrator is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false; 273Host.Check(onnx.CanSaveOnnx(ctx), "Cannot be saved as ONNX.");
Scorers\GenericScorer.cs (1)
147bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (Bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Scorers\MulticlassClassificationScorer.cs (2)
91bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (_bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true; 224Contracts.Check(((ICanSaveOnnx)this).CanSaveOnnx(ctx), "Cannot be saved as ONNX.");
Scorers\PredictedLabelScorerBase.cs (1)
279bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (Bindable as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Scorers\SchemaBindablePredictorWrapper.cs (1)
49bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => (ValueMapper as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true;
Transforms\TransformBase.cs (1)
606Host.Assert(((ICanSaveOnnx)this).CanSaveOnnx(ctx));
Microsoft.ML.OnnxConverter (3)
SaveOnnxCommand.cs (3)
149if (onnxTransform == null || !onnxTransform.CanSaveOnnx(ctx)) 184ch.Assert(trans.CanSaveOnnx(ctx)); 353if (scoreOnnx?.CanSaveOnnx(ctx) == true)
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
509public bool CanSaveOnnx(OnnxContext ctx) => Predictors.All(pred => (pred as ICanSaveOnnx)?.CanSaveOnnx(ctx) == true);
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
754bool ICanSaveOnnx.CanSaveOnnx(OnnxContext ctx) => _mapper is ICanSaveOnnx onnxMapper ? onnxMapper.CanSaveOnnx(ctx) : false; 902Host.Check(onnx.CanSaveOnnx(ctx), "Cannot be saved as ONNX.");
Microsoft.ML.Transforms (1)
OptionalColumnTransform.cs (1)
520Host.Assert(((ICanSaveOnnx)this).CanSaveOnnx(ctx));