AscendIndexFlatL2
| API定义 | AscendIndexFlatL2(int dims, AscendIndexFlatConfig config = AscendIndexFlatConfig()); | 
|---|---|
| 功能描述 | AscendIndexFlatL2的构造函数,生成维度为dims的AscendIndexFlatL2(单个Index管理的一组向量的维度是唯一的),此时根据“config”中配置的值设置Device侧资源。 | 
| 输入 | int dims:AscendIndexFlatL2管理的一组特征向量的维度。 AscendIndexFlatConfig config:Device侧资源配置。 | 
| 输出 | 无 | 
| 返回值 | 无 | 
| 约束说明 | dims ∈ {32, 64, 128, 256, 384, 512, 1024, 2048 3072, 4096} | 
父主题: AscendIndexFlatL2