MCPcopy Create free account
hub / github.com/alibaba/zvec / TEST

Function TEST

tests/core/algorithm/flat/flat_quantizer_distance_test.cc:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94} // namespace
95
96TEST(FlatQuantizerDistance, Fp32Matrices) {
97 for (const auto *name : {"SquaredEuclidean", "InnerProduct", "Cosine"}) {
98 CheckMatrices<float>(IndexMeta::DT_FP32, name);
99 }
100}
101TEST(FlatQuantizerDistance, Fp16Matrices) {
102 for (const auto *name : {"SquaredEuclidean", "InnerProduct", "Cosine"}) {
103 CheckMatrices<ailego::Float16>(IndexMeta::DT_FP16, name);

Callers

nothing calls this directly

Calls 9

ParamsFunction · 0.85
CreateDistanceQuantizerFunction · 0.85
set_metaMethod · 0.45
set_metricMethod · 0.45
set_extra_meta_sizeMethod · 0.45
dimMethod · 0.45
calc_distance_dp_dpMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected