AscendIndexInt8
| API定义 | AscendIndexInt8(int dims, faiss::MetricType metric, AscendIndexInt8Config config); | 
|---|---|
| 功能描述 | AscendIndexInt8的构造函数,生成维度为dims的AscendIndexInt8(单个Index管理的一组向量的维度是唯一的),此时根据“config”中配置的值设置Device侧资源。 | 
| 输入 | int dims:AscendIndexInt8管理的一组特征向量的维度。 faiss::MetricType metric:AscendIndexInt8在执行特征向量相似度检索的时候使用的距离度量类型,当前支持“faiss::MetricType::METRIC_L2”和“faiss::MetricType::METRIC_INNER_PRODUCT”。 AscendIndexInt8Config config:Device侧资源配置。 | 
| 输出 | 无 | 
| 返回值 | 无 | 
| 约束说明 | “dims”为不小于64,不大于1024的整数,且需要能被64整除。 | 
父主题: AscendIndexInt8