23 instantiations of OnnxScoringEstimator
Microsoft.ML.DnnImageFeaturizer.AlexNet (2)
AlexNetExtension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "AlexNetPrepOnnx", "AlexNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Dropout234_Output_0" }, new[] { "Input140" }, Path.Combine(modelDir, "AlexNetOnnx", "AlexNet.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet101 (2)
ResNet101Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling2286_Output_0" }, new[] { "Input1600" }, Path.Combine(modelDir, "ResNet101Onnx", "ResNet101.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet18 (2)
ResNet18Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling395_Output_0" }, new[] { "Input247" }, Path.Combine(modelDir, "ResNet18Onnx", "ResNet18.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet50 (2)
ResNet50Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling1096_Output_0" }, new[] { "Input750" }, Path.Combine(modelDir, "ResNet50Onnx", "ResNet50.onnx"));
Microsoft.ML.OnnxTransformer (15)
OnnxCatalog.cs (15)
44return new OnnxScoringEstimator(env, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse); 75return new OnnxScoringEstimator(env, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse); 114return new OnnxScoringEstimator(env, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary); 153return new OnnxScoringEstimator(env, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary); 188return new OnnxScoringEstimator(env, new[] { outputColumnName }, new[] { inputColumnName }, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse); 223return new OnnxScoringEstimator(env, new[] { outputColumnName }, new[] { inputColumnName }, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse); 242return new OnnxScoringEstimator(env, options.OutputColumns, options.InputColumns, options.ModelFile, 283return new OnnxScoringEstimator(env, new[] { outputColumnName }, new[] { inputColumnName }, 324return new OnnxScoringEstimator(env, new[] { outputColumnName }, new[] { inputColumnName }, 353return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse); 381return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse); 414return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary); 447return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary); 482return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelFile, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary, recursionLimit); 517return new OnnxScoringEstimator(env, outputColumnNames, inputColumnNames, modelBytes, gpuDeviceIdToUse, fallbackToCpuToUse, shapeDictionary: shapeDictionary, recursionLimit);
90 references to OnnxScoringEstimator
Microsoft.ML.DnnImageFeaturizer.AlexNet (2)
AlexNetExtension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "AlexNetPrepOnnx", "AlexNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Dropout234_Output_0" }, new[] { "Input140" }, Path.Combine(modelDir, "AlexNetOnnx", "AlexNet.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet101 (2)
ResNet101Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling2286_Output_0" }, new[] { "Input1600" }, Path.Combine(modelDir, "ResNet101Onnx", "ResNet101.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet18 (2)
ResNet18Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling395_Output_0" }, new[] { "Input247" }, Path.Combine(modelDir, "ResNet18Onnx", "ResNet18.onnx"));
Microsoft.ML.DnnImageFeaturizer.ResNet50 (2)
ResNet50Extension.cs (2)
46var prepEstimator = new OnnxScoringEstimator(env, new[] { "PreprocessedInput" }, new[] { "OriginalInput" }, Path.Combine(modelDir, "ResNetPrepOnnx", "ResNetPreprocess.onnx")); 47var mainEstimator = new OnnxScoringEstimator(env, new[] { "Pooling1096_Output_0" }, new[] { "Input750" }, Path.Combine(modelDir, "ResNet50Onnx", "ResNet50.onnx"));
Microsoft.ML.IntegrationTests (3)
ONNX.cs (3)
60var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(modelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 106var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(modelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 158var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(modelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu);
Microsoft.ML.OnnxTransformer (52)
DnnImageFeaturizerTransform.cs (2)
25/// a chain of two <see cref="OnnxScoringEstimator"/>. 92/// <see cref="OnnxScoringEstimator"/>s (one for preprocessing and one with a pretrained image DNN) with specific models
OnnxCatalog.cs (47)
17/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the input column. 19/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 41public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, string modelFile, int? gpuDeviceId = null, bool fallbackToCpu = false) 48/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the input column. 50/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 72public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, Stream modelBytes, int? gpuDeviceId = null, bool fallbackToCpu = false) 79/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the input column. 81/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 107public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 118/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the input column. 120/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 146public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 157/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnName"/> column. 158/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 180public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 192/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnName"/> column. 193/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 215public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 227/// Create a <see cref="OnnxScoringEstimator"/> using the specified <see cref="OnnxOptions"/>. 228/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 238/// <param name="options">Options for the <see cref="OnnxScoringEstimator"/>.</param> 239public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, OnnxOptions options) 247/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnName"/> column. 248/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 274public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 288/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnName"/> column. 289/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 315public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 329/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 330/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 345public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 357/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 358/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 373public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 385/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 386/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 405public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 418/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 419/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 438public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 451/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 452/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 472public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 486/// Create a <see cref="OnnxScoringEstimator"/>, which applies a pre-trained Onnx model to the <paramref name="inputColumnNames"/> columns. 487/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies, 507public static OnnxScoringEstimator ApplyOnnxModel(this TransformsCatalog catalog, 527/// <see cref="OnnxScoringEstimator"/> (one for preprocessing and one with a pretrained image DNN) with specific models
OnnxOptions.cs (1)
10/// The options for an <see cref="OnnxScoringEstimator"/>.
OnnxTransform.cs (2)
38/// <see cref="ITransformer"/> resulting from fitting an <see cref="OnnxScoringEstimator"/>. 39/// Please refer to <see cref="OnnxScoringEstimator"/> to learn more about the necessary dependencies,
Microsoft.ML.OnnxTransformerTest (13)
OnnxTransformTests.cs (13)
156var pipe = useOptionsCtor ? 196var est = ML.Transforms.ApplyOnnxModel(outputNames, inputNames, modelFile, gpuDeviceId, fallbackToCpu); 369var pipeline = ML.Transforms.ApplyOnnxModel("softmaxout_1", "data_0", modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 408var pipeline = ML.Transforms.ApplyOnnxModel("softmaxout_1", "data_0", modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 436var pipeline = ML.Transforms.ApplyOnnxModel(new[] { "outa", "outb" }, new[] { "ina", "inb" }, modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 476var pipeline = ML.Transforms.ApplyOnnxModel(new[] { "outb", "outa" }, new[] { "ina", "inb" }, modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 536var pipeline = ML.Transforms.ApplyOnnxModel(modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 562var pipeline = ML.Transforms.ApplyOnnxModel(modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 694var pipeline = ML.Transforms.ApplyOnnxModel(new[] { "output" }, new[] { "input" }, modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 747var pipeline = ML.Transforms.ApplyOnnxModel(new[] { "output" }, new[] { "input" }, modelFile, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 902var pipeline = new OnnxScoringEstimator[3]; 972var pipeline = ML.Transforms.ApplyOnnxModel(new[] { "outa", "outb" }, new[] { "ina", "inb" }, 1072var pipeline = ML.Transforms.ApplyOnnxModel(nameof(PredictionWithCustomShape.argmax),
Microsoft.ML.Samples (2)
Dynamic\ModelOperations\OnnxConversion.cs (1)
84var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(onnxModelPath);
Dynamic\Transforms\ApplyOnnxModel.cs (1)
28var pipeline = mlContext.Transforms.ApplyOnnxModel(modelPath);
Microsoft.ML.Tests (12)
OnnxConversionTest.cs (10)
62/// call <see cref="OnnxScoringEstimator"/> to evaluate that file. The outputs of <see cref="OnnxScoringEstimator"/> are checked against the original 826var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(onnxModelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 988var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(onnxModelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 1515var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(onnxFilePath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 1632var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(outputNames, inputNames, onnxModelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 1743var pipeline = mlContext.Transforms.ApplyOnnxModel(onnxModelPath); 1806var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(outputNames, inputNames, onnxModelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 1819var onnxEstimator2 = mlContext.Transforms.ApplyOnnxModel(outputNames, inputNames, onnxModelPath2, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu); 2254var onnxEstimator = ML.Transforms.ApplyOnnxModel(onnxModelPath, gpuDeviceId: _gpuDeviceId, fallbackToCpu: _fallbackToCpu);
OnnxSequenceTypeWithAttributesTest.cs (2)
46var pipeline = ctx.Transforms.ApplyOnnxModel( 85var pipeline = ctx.Transforms.ApplyOnnxModel(