AddFeature
API定义 |
APP_ERROR AddFeature(int64_t count, const void *features, const FeatureAttr *attributes, const int64_t *labels, const uint8_t *customAttr = nullptr); |
---|---|
功能描述 |
添加特征。 |
输入 |
int64_t count:待添加的特征数量。 const void *features:待添加的特征,汉明距离为uint8_t类型的数据,Int8Flat为int8_t类型;Fp16Flat距离为float类型。 const FeatureAttr *attributes:待添加的特征属性,具体请参见FeatureAttr。 const int64_t *labels:待添加的特征Label,使用上需要保证Label在Index实例中的唯一性。 const uint8_t *customAttr:待添加的用户自定义特征属性。 |
输出 |
无 |
返回值 |
APP_ERROR:调用返回状态,具体请参见接口调用返回值参考。 |
约束说明 |
|

AddFeature不能与AddWithExtraVal接口混用。
父主题: AscendIndexTS