文档
注册

AscendIndexInt8Flat

API定义

AscendIndexInt8Flat(int dims, faiss::MetricType metric = faiss::METRIC_L2, AscendIndexInt8FlatConfig config = AscendIndexInt8FlatConfig())

功能描述

AscendIndexInt8Flat的构造函数,生成维度为dim的AscendIndexInt8(单个Index管理的一组向量的维度是唯一的),此时根据config中配置的值设置Device侧资源。

输入

int dims:AscendIndexInt8管理的一组特征向量的维度。

faiss::MetricType metric:AscendIndex在执行特征向量相似度检索的时候使用的距离度量类型。

AscendIndexFlatConfig config:Device侧资源配置。

输出

返回值

约束说明

  • dims ∈ {64, 128, 256, 384, 512, 1024}。
  • metric ∈ {faiss::MetricType::METRIC_L2,faiss::MetricType::METRIC_INNER_PRODUCT}。
搜索结果
找到“0”个结果

当前产品无相关内容

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