AscendIndexFlatL2
API Definition |
AscendIndexFlatL2(int dims, AscendIndexFlatConfig config = AscendIndexFlatConfig()) |
|---|---|
Function |
Constructor of AscendIndexFlatL2, which is used to generate an AscendIndexFlatL2 whose dimension is dim. The NPU 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 AscendIndexFlatL2. AscendIndexFlatConfig config: resource configuration on the NPU. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
dims ∈ {64, 128, 256, 384, 512, 1024} |
Parent topic: AscendIndexFlatL2