|
|
@@ -30,7 +30,7 @@ public class LLamaEmbedderTests |
|
|
return a.Zip(b, (x, y) => x * y).Sum(); |
|
|
return a.Zip(b, (x, y) => x * y).Sum(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static void AssertApproxStartsWith(float[] expected, float[] actual, float epsilon = 0.04f) |
|
|
|
|
|
|
|
|
private static void AssertApproxStartsWith(float[] expected, float[] actual, float epsilon = 0.08f) |
|
|
{ |
|
|
{ |
|
|
for (int i = 0; i < expected.Length; i++) |
|
|
for (int i = 0; i < expected.Length; i++) |
|
|
Assert.Equal(expected[i], actual[i], epsilon); |
|
|
Assert.Equal(expected[i], actual[i], epsilon); |
|
|
|