Skip to content

Commit

Permalink
Some Falky Test
Browse files Browse the repository at this point in the history
Signed-off-by: Vikasht34 <[email protected]>
  • Loading branch information
Vikasht34 committed Feb 13, 2025
1 parent 01219ae commit b1afdef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ static OneBitScalarQuantizationState calculateQuantizationState(
}

// Calculate below and above threshold means
trainingRequest.resetVectorValues();
Pair<float[], float[]> belowAboveMeans = calculateBelowAboveThresholdMeans(trainingRequest, meanThresholds, sampledIndices);
float[] belowThresholdMeans = belowAboveMeans.getA();
float[] aboveThresholdMeans = belowAboveMeans.getB();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ public void testFlush_whenQuantizationIsProvided_whenBuildGraphDatStructureThres
final Long expectedTimesGetVectorValuesIsCalled = vectorsPerField.stream().filter(Predicate.not(Map::isEmpty)).count();
knnVectorValuesFactoryMockedStatic.verify(
() -> KNNVectorValuesFactory.getVectorValues(any(VectorDataType.class), any(DocsWithFieldSet.class), any()),
times(Math.toIntExact(expectedTimesGetVectorValuesIsCalled) * 2)
times(Math.toIntExact(expectedTimesGetVectorValuesIsCalled))
);
}
}
Expand Down Expand Up @@ -832,7 +832,7 @@ public void testFlush_whenQuantizationIsProvided_whenBuildGraphDatStructureThres
final Long expectedTimesGetVectorValuesIsCalled = vectorsPerField.stream().filter(Predicate.not(Map::isEmpty)).count();
knnVectorValuesFactoryMockedStatic.verify(
() -> KNNVectorValuesFactory.getVectorValues(any(VectorDataType.class), any(DocsWithFieldSet.class), any()),
times(Math.toIntExact(expectedTimesGetVectorValuesIsCalled) * 2)
times(Math.toIntExact(expectedTimesGetVectorValuesIsCalled))
);
}
}
Expand Down

0 comments on commit b1afdef

Please sign in to comment.