文档
注册

AscendIndexFlat

API定义

AscendIndexFlat(const faiss::IndexFlat *index, AscendIndexFlatConfig config = AscendIndexFlatConfig());

功能描述

AscendIndexFlat的构造函数,基于一个已有的“index”创建Ascend上的检索Index。

输入

const faiss::IndexFlat *index:CPU侧Index资源。

AscendIndexFlatConfig config:Device侧资源配置。

输出

返回值

约束说明

“index”需要为合法有效的CPUIndex指针,该Index的维度d参数取值范围为{32, 64, 128, 256, 384, 512, 1024, 2048} (2048仅支持L2距离),底库向量总数的取值范围:0 < n < 1e9,metric_type参数取值为 {faiss::MetricType::METRIC_L2,faiss::MetricType::METRIC_INNER_PRODUCT}。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词