[skip e2e] improve annotation (#14055)

Signed-off-by: Xieql <qianglong.xie@zilliz.com>
pull/14069/head
Xieql 2021-12-23 14:40:14 +08:00 committed by GitHub
parent 370b878857
commit e6e58b69d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void IndexIVFPQ::train_residual_o (idx_t n, const float *x, float *residuals_2)
ScopeDeleter<float> del_residuals;
if (by_residual) {
if(verbose) printf("computing residuals\n");
idx_t * assign = new idx_t [n]; // assignement to coarse centroids
idx_t * assign = new idx_t [n]; // assignment to coarse centroids
ScopeDeleter<idx_t> del (assign);
quantizer->assign (n, x, assign);
float *residuals = new float [n * d];