Skip to content

added in win-arm64 #6813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 8 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
4 changes: 2 additions & 2 deletions test/Microsoft.ML.AutoML.Tests/AutoFitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void AutoFit_UCI_Adult_Train_Test_Split_Test()
Assert.NotNull(result.BestRun.TrainerName);
}

[Fact]
[X64Fact("Only x64 is supported.")]
public void AutoFit_UCI_Adult_CrossValidation_10_Test()
{
var context = new MLContext(1);
Expand Down Expand Up @@ -146,7 +146,7 @@ public void AutoFit_UCI_Adult_CrossValidation_10_Test()
Assert.NotNull(model);
}

[Fact]
[X64Fact("Only x64 is supported.")]
public void AutoFit_Taxi_Fare_Train_Test_Split_Test()
{
var context = new MLContext(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>


<ItemGroup Condition="'$(TargetArchitecture)' == 'x64'">
<ItemGroup>
<Content Include="$(ArtifactsObjDir)DnnImageModels\ResNetPrepOnnx\ResNetPreprocess.onnx">
<Link>DnnImageModels\ResNetPrepOnnx\ResNetPreprocess.onnx</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.

using System;
using System.Reflection;

namespace Microsoft.ML.TestFramework.Attributes
{
Expand All @@ -18,7 +19,7 @@ public X64FactAttribute(string skipMessage) : base(skipMessage)
/// <inheritdoc />
protected override bool IsEnvironmentSupported()
{
return Environment.Is64BitProcess;
return Environment.Is64BitProcess && System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.X64;
}
}
}