-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Matrix factorization fails in x86 (MatrixFactorizationSimpleTrainAndPredict test was disabled as part of #1432).
The reason is that the MFModel struct is architecture dependent:
machinelearning/src/Microsoft.ML.Recommender/SafeTrainingAndModelBuffer.cs
Lines 67 to 80 in eae7695
[StructLayout(LayoutKind.Explicit)] | |
private unsafe struct MFModel | |
{ | |
[FieldOffset(0)] | |
public int M; | |
[FieldOffset(4)] | |
public int N; | |
[FieldOffset(8)] | |
public int K; | |
[FieldOffset(16)] | |
public float* P; | |
[FieldOffset(24)] | |
public float* Q; | |
} |
The struct matches the output data structure produced by c++ code in the libmf library.
See the following comment for how this issue should be solved using P/Invoke instead: #1432 (comment)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working