diff --git a/faiss/IndexNSG.cpp b/faiss/IndexNSG.cpp index 23710c4f59..9652266c43 100644 --- a/faiss/IndexNSG.cpp +++ b/faiss/IndexNSG.cpp @@ -309,7 +309,7 @@ IndexNSGSQ::IndexNSGSQ( int M, MetricType metric) : IndexNSG(new IndexScalarQuantizer(d, qtype, metric), M) { - is_trained = false; + is_trained = this->storage->is_trained; own_fields = true; }