AscendIndexInt8
API definition |
AscendIndexInt8(int dims, faiss::MetricType metric, AscendIndexInt8Config config); |
|---|---|
Function |
Constructor of AscendIndexInt8, which is used to generate an AscendIndexInt8 whose dimension is dims. The device resources are configured based on the value configured in config. Note that the dimension of a group of vectors managed by a single index is unique. |
Input |
int dims: dimensions of a group of feature vectors managed by AscendIndexInt8. faiss::MetricType metric: distance measurement type used by AscendIndexInt8 when it retrieves feature vector similarity. Currently, faiss::MetricType::METRIC_L2 and faiss::MetricType::METRIC_INNER_PRODUCT are supported. AscendIndexInt8Config config: resource configuration on the device. |
Output |
N/A |
Return value |
N/A |
Restrictions |
The value of dims is an integer ranging from 64 to 1024 and must be exactly divided by 64. |
API definition |
AscendIndexInt8(const AscendIndexInt8&) = delete; |
|---|---|
Function |
Declares that the copy constructor of this Index class is void, that is, it cannot be copied. |
Input |
const AscendIndexInt8&: AscendIndexInt8 object. |
Output |
N/A |
Return value |
N/A |
Restrictions |
N/A |
API definition |
virtual ~AscendIndexInt8(); |
|---|---|
Function |
Destructor of AscendIndexInt8, which is used to destroy the AscendIndexInt8 object and resources. |
Input |
N/A |
Output |
N/A |
Return value |
N/A |
Restrictions |
N/A |