More Functions
Algorithm Introduction
Algorithm (API Reference) |
Algorithm Requirements (Performance and Scenario) |
Call Method |
Example |
|---|---|---|---|
IReduction is a unified API for dimension reduction in FeatureRetrieval. Currently, the PCAR and NN dimension reduction algorithms are supported. |
Call ReductionConfig for initialization and CreateReduction to create a dimension reduction object, and then perform train and reduce operations. |
||
Performs inference by using the neural networks. |
Call AscendNNInference to create an NN dimension reduction object and then perform the infer operation to reduce dimensions. |
||
Index SDK copies the NPU-side retrieval index resources to the CPU-side Faiss. The copy process is performed in the memory. The data loaded on an index of the NPU is copied to the memory on the CPU, facilitating retrieval within the same database on the CPU. |
Call index_ascend_to_cpu to copy an AscendIndex to an index on the CPU, and call index_cpu_to_ascend to copy an index on the CPU to generate an AscendIndex. |
N/A |