Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 7 additions & 63 deletions .vsts-dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resources:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:centos-7-mlnet-8bba86b-20190314145033

- container: UbuntuContainer
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-mlnet-207e097-20190312152303
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-mlnet-20200515184230-2c829e8

jobs:
- template: /build/ci/job-template.yml
Expand All @@ -27,7 +27,8 @@ jobs:
_config_short: RI
_includeBenchmarkData: true
_targetFramework: netcoreapp3.1
innerLoop: true
innerLoop: false
runSpecific: true
pool:
name: Hosted Ubuntu 1604

Expand All @@ -36,73 +37,16 @@ jobs:
name: Ubuntu_x64_NetCoreApp21
buildScript: ./build.sh
container: UbuntuContainer
innerLoop: true
innerLoop: false
runSpecific: true
pool:
name: Hosted Ubuntu 1604

- template: /build/ci/job-template.yml
parameters:
name: MacOS_x64_NetCoreApp21
buildScript: ./build.sh
innerLoop: true
innerLoop: false
runSpecific: true
pool:
name: Hosted macOS

- template: /build/ci/job-template.yml
parameters:
name: Windows_x64_NetCoreApp31
buildScript: build.cmd
customMatrixes:
Debug_Build:
_configuration: Debug-netcoreapp3_1
_config_short: DI
_includeBenchmarkData: false
_targetFramework: netcoreapp3.1
Release_Build:
_configuration: Release-netcoreapp3_1
_config_short: RI
_includeBenchmarkData: true
_targetFramework: netcoreapp3.1
innerLoop: true
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.0"
pool:
name: Hosted VS2017

- template: /build/ci/job-template.yml
parameters:
name: Windows_x64_NetCoreApp21
buildScript: build.cmd
innerLoop: true
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v2.1"
pool:
name: Hosted VS2017

- template: /build/ci/job-template.yml
parameters:
name: Windows_x64_NetFx461
buildScript: build.cmd
customMatrixes:
Debug_Build:
_configuration: Debug-netfx
_config_short: DFX
_includeBenchmarkData: false
_targetFramework: win-x64
Release_Build:
_configuration: Release-netfx
_config_short: RFX
_includeBenchmarkData: false
_targetFramework: win-x64
innerLoop: true
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v4.0"
pool:
name: Hosted VS2017

- template: /build/ci/job-template.yml
parameters:
name: Windows_x86_NetCoreApp21
architecture: x86
buildScript: build.cmd
innerLoop: true
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v2.1"
pool:
name: Hosted VS2017
8 changes: 5 additions & 3 deletions test/Microsoft.ML.Tests/OnnxConversionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,11 @@ public void PlattCalibratorOnnxConversionTest2()
Done();
}

[Fact]
public void TextNormalizingOnnxConversionTest()
// [Fact]
[Theory, IterationData(5), TestCategory("RunSpecificTest")]
public void TextNormalizingOnnxConversionTest(int iterations)
{
Console.WriteLine(String.Format("TextNormalizingOnnxConversionTest Iteration {0}", iterations));
var mlContext = new MLContext(seed: 1);
var dataPath = GetDataPath("wikipedia-detox-250-line-test.tsv");
var dataView = ML.Data.LoadFromTextFile(dataPath, new[] {
Expand All @@ -462,7 +464,7 @@ public void TextNormalizingOnnxConversionTest()

// Compare model scores produced by ML.NET and ONNX's runtime.
// Skipping test in Linux platforms temporarily
if (IsOnnxRuntimeSupported() && !RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
if (IsOnnxRuntimeSupported())
{
// Evaluate the saved ONNX model using the data used to train the ML.NET pipeline.
var onnxEstimator = mlContext.Transforms.ApplyOnnxModel(onnxModelPath);
Expand Down