index_int8_ascend_to_cpu

API定义

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

功能描述

根据Ascend上的INT8的检索Index资源,拷贝生成一个CPU上的检索Index。

输入

const AscendIndexInt8 *index:Ascend上的Index资源。

输出

返回值

生成一个CPU上的检索Index。

约束说明

  • 使用完毕该“index”后请注意delete此指针,释放对应的空间。
  • “index”需要为合法有效的AscendIndexInt8指针。