From 06ff214d281aa7022918819ea0fec7065a080da4 Mon Sep 17 00:00:00 2001 From: Nicky Date: Thu, 21 Nov 2019 22:27:57 +0800 Subject: [PATCH] fix load from memory --- AnnService/inc/Core/Common/Dataset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnnService/inc/Core/Common/Dataset.h b/AnnService/inc/Core/Common/Dataset.h index d00ea4536..0208f6d98 100644 --- a/AnnService/inc/Core/Common/Dataset.h +++ b/AnnService/inc/Core/Common/Dataset.h @@ -195,7 +195,7 @@ namespace SPTAG C = *((DimensionType*)pDataPointsMemFile); pDataPointsMemFile += sizeof(DimensionType); - Initialize(R, C, (T*)pDataPointsMemFile); + Initialize(R, C, (T*)pDataPointsMemFile, false); std::cout << "Load " << name << " (" << R << ", " << C << ") Finish!" << std::endl; return true; }