Skip to content

Commit

Permalink
chore(fixup)#: Fix up a couple oversights in unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCyro committed Feb 6, 2025
1 parent bbc79b1 commit 6c2ca8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Spz.NET.Tests/QuantizationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void AlphaQuantizationTest()
// Alpha is quantized with sigmoid activation, so the upper regions can be up to ~0.65f off.
float acceptableError = 0.65f; // TODO: Make corresponding sigmoid function to test errors at smaller ranges?

// Test a thousand times just to be sure. (Is there a better way to do this?)
// Count up in very small increments to test the error.
int count = 1000;
for (int i = 0; i < count; i++)
{
Expand Down Expand Up @@ -194,8 +194,8 @@ public void HarmonicQuantizationTest()

Span<byte> quantized = stackalloc byte[45];

// Test a thousand times just to be sure. (Is there a better way to do this?)
int count = 50;
// Count up in very small increments to test the error.
int count = 1000;
for (int i = 0; i < count; i++)
{
GaussianHarmonics original = new();
Expand Down

0 comments on commit 6c2ca8c

Please sign in to comment.