Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0d97a1e

Browse files
PhilipBAdamspabs3
authored andcommittedJun 16, 2023
Fix reconstruct tests
Cherry-picked-from: commit 1e87978 Fixes: microsoft#315
1 parent 4ff1fef commit 0d97a1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Test/src/ReconstructIndexSimilarityTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void GenerateReconstructData(std::shared_ptr<VectorSet>& real_vecset, std::share
165165
if (ptr == nullptr || !ptr->Initialize(CODEBOOK_FILE.c_str(), std::ios::binary | std::ios::in)) {
166166
BOOST_ASSERT("Canot Open CODEBOOK_FILE to read!" == "Error");
167167
}
168-
quantizer->LoadIQuantizer(ptr);
168+
quantizer = COMMON::IQuantizer::LoadIQuantizer(ptr);
169169
BOOST_ASSERT(quantizer);
170170

171171
std::shared_ptr<Helper::ReaderOptions> options(new Helper::ReaderOptions(GetEnumValueType<R>(), m, VectorFileType::DEFAULT));
@@ -247,7 +247,7 @@ void GenerateReconstructData(std::shared_ptr<VectorSet>& real_vecset, std::share
247247
if (!ptr->Initialize(CODEBOOK_FILE.c_str(), std::ios::binary | std::ios::in)) {
248248
BOOST_ASSERT("Canot Open CODEBOOK_FILE to read!" == "Error");
249249
}
250-
quantizer->LoadIQuantizer(ptr);
250+
quantizer = COMMON::IQuantizer::LoadIQuantizer(ptr);
251251
BOOST_ASSERT(quantizer);
252252

253253
rec_vecset.reset(new BasicVectorSet(ByteArray::Alloc(sizeof(R) * n * m), GetEnumValueType<R>(), m, n));

0 commit comments

Comments
 (0)
Please sign in to comment.