AscendIndexGreat
API definition |
AscendIndexGreat(const std::string& mode, const std::vector<int>& deviceList, bool verbose = false); |
|---|---|
Function |
Constructor of AscendIndexGreat, which creates a retrieval index on Ascend. |
Input |
const std::string& mode: algorithm mode. const std::vector<int>& deviceList: device ID on the NPU. bool verbose: whether to enable verbose. If it is enabled, additional information will be displayed for some operations. The value is defaulted to false. |
Output |
N/A |
Return value |
N/A |
Restrictions |
|
API definition |
explicit AscendIndexGreat(const AscendIndexGreatInitParams& kModeInitParams); |
|---|---|
Function |
Constructor of AscendIndexGreat, which creates a retrieval index on Ascend. |
Input |
Initialization parameter kModeInitParams required by the index. For details, see AscendIndexGreatInitParams. |
Output |
N/A |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
For details, see AscendIndexGreatInitParams. |
API definition |
AscendIndexGreat(const AscendIndexVstarInitParams& aModeInitParams, const AscendIndexGreatInitParams& kModeInitParams); |
|---|---|
Function |
Constructor of AscendIndexGreat, which creates a retrieval index on Ascend. |
Input |
Initialization parameters aModeInitParams and kModeInitParams required by the index. For details, see AscendIndexVstarInitParams and AscendIndexGreatInitParams. |
Output |
N/A |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
For details, see AscendIndexVstarInitParams and AscendIndexGreatInitParams. dim of aModeInitParams and kModeInitParams must be consistent. |
API definition |
AscendIndexGreat(const AscendIndexGreat&) = delete; |
|---|---|
Function |
Declares that the copy constructor of this Index class is void, that is, it cannot be copied. |
Input |
const AscendIndexGreat&: constant AscendIndexGreat object. |
Output |
N/A |
Return value |
N/A |
Restrictions |
N/A |