AscendIndexPreTransform
API Definition |
AscendIndexPreTransform(const faiss::IndexPreTransform *index, AscendIndexConfig config = AscendIndexConfig()) |
|---|---|
Function |
Constructs an AscendIndexPreTransform object based on the Faiss resource on the CPU. |
Input |
const faiss::IndexPreTransform *index: Faiss object for linear transformation on the CPU. AscendIndexConfig config: resource configuration on the NPU. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
The index must be a valid CPUindex pointer. |
Parent topic: AscendIndexPreTransform