Skip to content

Commit 62d0c94

Browse files
committed
Hard-coded a constant only processed in Debug to fix errors
1 parent 4d7d8ef commit 62d0c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.ML.CpuMath/CpuAligenedMathUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void AssertCompatible(ICpuFullMatrix values)
1616
#if DEBUG
1717
var mat = values as TMatrix;
1818
Contracts.AssertValue(mat);
19-
Contracts.Assert(mat.Items.CbAlign == CpuMathUtils.GetVectorAlignment());
19+
Contracts.Assert(mat.Items.CbAlign == 16);
2020
#endif
2121
}
2222

@@ -29,7 +29,7 @@ public static void AssertCompatible(ICpuVector values)
2929
#if DEBUG
3030
CpuAlignedVector vec = values as CpuAlignedVector;
3131
Contracts.AssertValue(vec);
32-
Contracts.Assert(vec.Items.CbAlign == CpuMathUtils.GetVectorAlignment());
32+
Contracts.Assert(vec.Items.CbAlign == 16);
3333
#endif
3434
}
3535

0 commit comments

Comments
 (0)