machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

Remove unsupported platform check.

Open gjtorikian opened this issue 3 years ago • 2 comments

I have the following build script:

dotnet publish -c Release --runtime linux-arm64 --self-contained

This results in the following error:

/Users/gjtorikian/.nuget/packages/microsoft.ml/1.7.1/build/netstandard2.0/Microsoft.ML.targets(16,5): error : Microsoft.ML currently supports 'x64' and 'x86' processor architectures. Please ensure your application is targeting 'x64' or 'x86'. 

Is arm64 not supported?

gjtorikian avatar Mar 29 '22 17:03 gjtorikian

Hi @gjtorikian. Arm64 is supported, but there are a few trainers that don't fully work in Arm64 because of dependencies that don't run there. That being said, I thought I had removed this check since we now do support Arm64... To workaround this you can set EnableMLUnsupportedPlatformTargetCheck to false and it will skip this check.

I'll rename this issue so we can track removing that check.

michaelgsharp avatar Mar 29 '22 17:03 michaelgsharp

Great, worked like a charm. Thank you!

gjtorikian avatar Mar 30 '22 19:03 gjtorikian