Skip to content

Commit a6a9d9d

Browse files
codemzsTomFinley
authored andcommitted
Move ONNX Transformer into Microsoft.ML.Transforms.Onnx namespace. (#2929)
* Move ONNX Transformer into Microsoft.ML.Transforms.Onnx namespace. * Make ONNX image model extension methods have the proper Microsoft.ML namespace.
1 parent 4c29a09 commit a6a9d9d

File tree

13 files changed

+22
-10
lines changed

13 files changed

+22
-10
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/Transforms/ImageAnalytics/DnnFeaturizeImage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.IO;
22
using System.Linq;
33
using Microsoft.ML.Data;
4-
using Microsoft.ML.Transforms;
4+
using Microsoft.ML.Transforms.Onnx;
55

66
namespace Microsoft.ML.Samples.Dynamic
77
{

src/Microsoft.ML.DnnImageFeaturizer.AlexNet/AlexNetExtension.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
using System.IO;
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
9+
using Microsoft.ML.Transforms;
10+
using Microsoft.ML.Transforms.Onnx;
911

10-
namespace Microsoft.ML.Transforms
12+
namespace Microsoft.ML
1113
{
1214
/// <summary>
1315
/// This is an extension method to be used with the <see cref="DnnImageFeaturizerEstimator"/> in order to use a pretrained AlexNet model.

src/Microsoft.ML.DnnImageFeaturizer.ResNet101/ResNet101Extension.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
using System.IO;
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
9+
using Microsoft.ML.Transforms;
10+
using Microsoft.ML.Transforms.Onnx;
911

10-
namespace Microsoft.ML.Transforms
12+
namespace Microsoft.ML
1113
{
1214
/// <summary>
1315
/// This is an extension method to be used with the <see cref="DnnImageFeaturizerEstimator"/> in order to use a pretrained ResNet101 model.

src/Microsoft.ML.DnnImageFeaturizer.ResNet18/ResNet18Extension.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
using System.IO;
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
9+
using Microsoft.ML.Transforms;
10+
using Microsoft.ML.Transforms.Onnx;
911

10-
namespace Microsoft.ML.Transforms
12+
namespace Microsoft.ML
1113
{
1214
/// <summary>
1315
/// This is an extension method to be used with the <see cref="DnnImageFeaturizerEstimator"/> in order to use a pretrained ResNet18 model.

src/Microsoft.ML.DnnImageFeaturizer.ResNet50/ResNet50Extension.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
using System.IO;
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
9+
using Microsoft.ML.Transforms;
10+
using Microsoft.ML.Transforms.Onnx;
911

10-
namespace Microsoft.ML.Transforms
12+
namespace Microsoft.ML
1113
{
1214
/// <summary>
1315
/// This is an extension method to be used with the <see cref="DnnImageFeaturizerEstimator"/> in order to use a pretrained ResNet50 model.

src/Microsoft.ML.OnnxTransformer.StaticPipe/DnnImageFeaturizerStaticExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
99
using Microsoft.ML.StaticPipe;
10+
using Microsoft.ML.Transforms.Onnx;
1011

1112
namespace Microsoft.ML.Transforms.StaticPipe
1213
{

src/Microsoft.ML.OnnxTransformer.StaticPipe/OnnxStaticExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections.Generic;
66
using Microsoft.ML.Runtime;
77
using Microsoft.ML.StaticPipe;
8+
using Microsoft.ML.Transforms.Onnx;
89

910
namespace Microsoft.ML.Transforms.StaticPipe
1011
{

src/Microsoft.ML.OnnxTransformer/DnnImageFeaturizerTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using Microsoft.ML.Data;
88
using Microsoft.ML.Runtime;
99

10-
namespace Microsoft.ML.Transforms
10+
namespace Microsoft.ML.Transforms.Onnx
1111
{
1212
/// <summary>
1313
/// This is a helper class that is required to use the <see cref="DnnImageFeaturizerEstimator"/>.

src/Microsoft.ML.OnnxTransformer/OnnxCatalog.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using Microsoft.ML.Data;
77
using Microsoft.ML.Transforms;
8+
using Microsoft.ML.Transforms.Onnx;
89

910
namespace Microsoft.ML
1011
{

src/Microsoft.ML.OnnxTransformer/OnnxTransform.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using Microsoft.ML.Internal.Utilities;
1515
using Microsoft.ML.OnnxRuntime;
1616
using Microsoft.ML.Runtime;
17-
using Microsoft.ML.Transforms;
17+
using Microsoft.ML.Transforms.Onnx;
1818
using OnnxShape = System.Collections.Generic.List<int>;
1919

2020
[assembly: LoadableClass(OnnxTransformer.Summary, typeof(IDataTransform), typeof(OnnxTransformer),
@@ -31,7 +31,7 @@
3131

3232
[assembly: EntryPointModule(typeof(OnnxTransformer))]
3333

34-
namespace Microsoft.ML.Transforms
34+
namespace Microsoft.ML.Transforms.Onnx
3535
{
3636
/// <summary>
3737
/// <p>A transform for scoring ONNX models in the ML.NET framework.</p>

0 commit comments

Comments
 (0)