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