diff --git a/gpu/GpuIndexIVFScalarQuantizer.cu b/gpu/GpuIndexIVFScalarQuantizer.cu index ab16fafcee..f40464ac82 100644 --- a/gpu/GpuIndexIVFScalarQuantizer.cu +++ b/gpu/GpuIndexIVFScalarQuantizer.cu @@ -139,6 +139,7 @@ GpuIndexIVFScalarQuantizer::copyTo( GpuIndexIVF::copyTo(index); index->sq = sq; + index->code_size = sq.code_size; index->by_residual = by_residual; InvertedLists* ivf = new ArrayInvertedLists(nlist, index->code_size);