diff --git a/README.md b/README.md
index 8742cbcafa..ec6c872cb2 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,7 @@ There a list of short videos each one focusing on a particular single topic of M
ML.NET runs on Windows, Linux, and macOS using [.NET Core](https://github.com/dotnet/core), or Windows using .NET Framework.
-64 bit is supported on all platforms. 32 bit is supported on Windows, except for TensorFlow, LightGBM, and ONNX related functionality.
+64 bit is supported on all platforms. 32 bit is supported on Windows, except for TensorFlow and LightGBM related functionality.
## ML.NET Nuget packages status
diff --git a/build/Dependencies.props b/build/Dependencies.props
index 39cf7b5312..34fe9dc49a 100644
--- a/build/Dependencies.props
+++ b/build/Dependencies.props
@@ -16,7 +16,7 @@
3.5.1
2.2.3
2.1.0
- 0.4.0
+ 0.5.1
0.0.0.9
2.1.3
4.5.0
diff --git a/test/Microsoft.ML.TestFramework/Attributes/OnnxFactAttribute.cs b/test/Microsoft.ML.TestFramework/Attributes/OnnxFactAttribute.cs
index 150c74decf..6254f50213 100644
--- a/test/Microsoft.ML.TestFramework/Attributes/OnnxFactAttribute.cs
+++ b/test/Microsoft.ML.TestFramework/Attributes/OnnxFactAttribute.cs
@@ -12,14 +12,18 @@ namespace Microsoft.ML.TestFramework.Attributes
///
public sealed class OnnxFactAttribute : EnvironmentSpecificFactAttribute
{
- public OnnxFactAttribute() : base("Onnx is 64-bit Windows only")
+ public OnnxFactAttribute() : base("Onnx is not supported on Linux with libc < v2.23")
{
}
///
protected override bool IsEnvironmentSupported()
{
- return Environment.Is64BitProcess && (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23)));
+ return IsOnnxRuntimeSupported;
}
+
+ public static bool IsOnnxRuntimeSupported { get; } =
+ !RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
+ || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new Version(2, 23));
}
}
\ No newline at end of file
diff --git a/test/Microsoft.ML.Tests/OnnxConversionTest.cs b/test/Microsoft.ML.Tests/OnnxConversionTest.cs
index 7915e011b5..9e6f9040c4 100644
--- a/test/Microsoft.ML.Tests/OnnxConversionTest.cs
+++ b/test/Microsoft.ML.Tests/OnnxConversionTest.cs
@@ -43,7 +43,7 @@ public OnnxConversionTest(ITestOutputHelper output) : base(output)
private bool IsOnnxRuntimeSupported()
{
- return Environment.Is64BitProcess && (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || AttributeHelpers.CheckLibcVersionGreaterThanMinimum(new System.Version(2, 23)));
+ return OnnxFactAttribute.IsOnnxRuntimeSupported;
}
///