index_int8_ascend_to_cpu

API Definition

faiss::Index *index_int8_ascend_to_cpu(const AscendIndexInt8 *index)

Function

Copies and generates a retrieval index on the CPU based on the INT8 retrieval index resources on the Ascend.

Input

const AscendIndexInt8 *index: index resources on the Ascend.

Output

N/A

Return Value

Generates a retrieval index on the CPU.

Restrictions

  • After using the index, delete the pointer to destroy the corresponding space.
  • The index must be a valid AscendIndexInt8 pointer.