未验证 提交 df36925b 编写于 作者: C cqy123456 提交者: GitHub

fix 3903 (#3958)

Signed-off-by: Ncqy <yaya645@126.com>
上级 5278625f
......@@ -173,7 +173,7 @@ GpuIndexIVF::copyFrom(faiss::IndexIVF* index, gpu::GpuIndexFlat *&qt, int64_t mo
GpuIndexFlatConfig config = ivfConfig_.flatConfig;
// FIXME: inherit our same device
config.device = device_;
config.storeInCpu = false;
config.storeInCpu = true;
if(qt == nullptr) {
if (index->metric_type == faiss::METRIC_L2) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册