AscendIndexIVFSQ
API定义 |
AscendIndexIVFSQ(const faiss::IndexIVFScalarQuantizer *index, AscendIndexIVFSQConfig config = AscendIndexIVFSQConfig()); |
---|---|
功能描述 |
AscendIndexIVFSQ的构造函数,基于一个已有的index创建Ascend上的检索Index。 |
输入 |
const faiss::IndexIVFScalarQuantizer *index:CPU侧资源配置。 AscendIndexIVFSQConfig config:Device侧资源配置。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
“index”需要为合法有效的CPUindex指针。 |
父主题: AscendIndexIVFSQ