昇腾社区首页
中文
注册

setNumProbes

API定义

void setNumProbes(int nprobes)

功能描述

设置当前的AscendIndexInt8IVF的“nprobe”数。

输入

int nprobes:AscendIndexInt8IVF二级检索的桶数,当nprobes等于分桶总数nlist时,该方法退化到全量检索。

输出

返回值

约束说明

0<nprobe≤nlist