dotnet / dotnet/machinelearning
Duplication of c# Example for ApplyOnnxModel method 1 and 2
- Dominant language
- C#
- Stars
- 9.4k
- Forks
- 2k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 11
Description
Both the Method 1 and 2 are different BUT have exactly the same examples ( which is **wrong**)
## Method 1
```cs
public static Microsoft.ML.Transforms.Onnx.OnnxScoringEstimator ApplyOnnxModel (this Microsoft.ML.TransformsCatalog catalog, string modelFile, int? gpuDeviceId = default, bool fallbackToCpu = false);
```
## Method 2
```cs
public static Microsoft.ML.Transforms.Onnx.OnnxScoringEstimator ApplyOnnxModel (this Microsoft.ML.TransformsCatalog catalog, string modelFile, System.Collections.Generic.IDictionary shapeDictionary, int? gpuDeviceId = default, bool fallbackToCpu = false);
```
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: be8e53de-3517-4017-7efe-c4d14948bdfc
* Version Independent ID: 4161c7a2-68f2-72a2-1bb9-46e9d4ea7cb0
* Content: [OnnxCatalog.ApplyOnnxModel Method (Microsoft.ML)](https://docs.microsoft.com/en-us/dotnet/api/microsoft.ml.onnxcatalog.applyonnxmodel?view=ml-dotnet)
* Content Source: [dotnet/xml/Microsoft.ML/OnnxCatalog.xml](https://github.com/dotnet/ml-api-docs/blob/live/dotnet/xml/Microsoft.ML/OnnxCatalog.xml)
* Product: **dotnet-ml-api**
* GitHub Login: @natke
* Microsoft Alias: **nakersha**
Contributor guide
Assessment
This issue has not been assessed yet.