AscendIndexFlat
API定义  | 
AscendIndexFlat(const faiss::IndexIDMap *index, AscendIndexFlatConfig config = AscendIndexFlatConfig());  | 
|---|---|
功能描述  | 
AscendIndexFlat的构造函数,基于一个已有的“index”创建Ascend上的检索index。  | 
输入  | 
const faiss::IndexIDMap *index:CPU侧index资源。 AscendIndexFlatConfig config:Device侧资源配置。  | 
输出  | 
无  | 
返回值  | 
无  | 
约束说明  | 
“index”需要为合法有效的IndexIDMap指针,该index的成员索引维度d参数取值范围为{32, 64, 128, 256, 384, 512, 768, 1024, 1408, 1536, 2048, 3072, 3584, 4096}。底库向量总数的取值范围:0 ≤ n < 1e9,metric_type参数取值为{faiss::MetricType::METRIC_L2, faiss::MetricType::METRIC_INNER_PRODUCT}。  | 
父主题: AscendIndexFlat