Skip to content

Commit 4e131b5

Browse files
committed
force a static reference to Microsoft.ML.Transforms
1 parent 8ec2fd5 commit 4e131b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Microsoft.ML.FSharp.Tests/SmokeTests.fs

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ module SmokeTest1 =
7979
[<ColumnName "PredictedLabel"; DefaultValue>]
8080
val mutable Sentiment : bool
8181

82+
let _load =
83+
// See https://github.com/dotnet/machinelearning/issues/401: forces the loading of ML.NET assemblies
84+
// This is needed even for compiled code
85+
[ typeof<Microsoft.ML.Runtime.Transforms.TextAnalytics>;
86+
typeof<Microsoft.ML.Runtime.FastTree.FastTree> ]
87+
8288
[<Fact>]
8389
let ``FSharp-Sentiment-Smoke-Test`` () =
8490

0 commit comments

Comments
 (0)