AscendIndexGreat接口
API定义 |
AscendIndexGreat(const std::string& mode, const std::vector<int>& deviceList, bool verbose = false); |
---|---|
功能描述 |
AscendIndexGreat的构造函数,创建Ascend上的检索Index。 |
输入 |
const std::string& mode:指定算法模式。 const std::vector<int>& deviceList:指定的NPU 侧设备ID。 bool verbose:指定是否开启verbose选项,开启后部分操作提供额外的打印提示。默认值为“false”。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
|
API定义 |
explicit AscendIndexGreat(const AscendIndexGreatInitParams& kModeInitParams); |
---|---|
功能描述 |
AscendIndexGreat的构造函数,创建Ascend上的检索Index。 |
输入 |
Index所需的初始化参数kModeInitParams,具体请参见AscendIndexGreatInitParams。 |
输出 |
无 |
返回值 |
APP_ERROR:调用返回状态,具体请参见接口调用返回值参考。 |
约束说明 |
参见AscendIndexGreatInitParams中的参数说明和参数约束。 |
API定义 |
AscendIndexGreat(const AscendIndexVstarInitParams& aModeInitParams, const AscendIndexGreatInitParams& kModeInitParams); |
---|---|
功能描述 |
AscendIndexGreat的构造函数,创建Ascend上的检索Index。 |
输入 |
Index所需的初始化参数aModeInitParams和kModeInitParams,具体请参见AscendIndexVstarInitParams和AscendIndexGreatInitParams。 |
输出 |
无 |
返回值 |
APP_ERROR:调用返回状态,具体请参见接口调用返回值参考。 |
约束说明 |
参考AscendIndexVstarInitParams和AscendIndexGreatInitParams中的参数说明和参数约束。 aModeInitParams和kModeInitParams的dim必须保持一致。 |
API定义 |
AscendIndexGreat(const AscendIndexGreat&) = delete; |
---|---|
功能描述 |
声明此index拷贝构造函数为空,即不可拷贝类型。 |
输入 |
const AscendIndexGreat&:常量AscendIndexGreat对象。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
无 |