aclfvCreateQueryTable

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

X

Atlas A3 training products/Atlas A3 inference products

X

Atlas A2 training products/Atlas A2 inference products

X

Atlas 200I/500 A2 inference products

X

Atlas inference products

√

Atlas training products

X

Function

Creates data of the aclfvQueryTable type for the search input table. To destroy data of the aclfvQueryTable type, call aclfvDestroyQueryTable.

Atlas inference accelerator module: This API is not supported.

Prototype

1
aclfvQueryTable *aclfvCreateQueryTable(uint32_t queryCnt, uint32_t tableLen, uint8_t *tableData, uint32_t tableDataLen)

Parameters

Parameter

Input/Output

Description

queryCnt

Input

Number of search requests, fixed at 1 in 1:N mode or up to 1024 in N:M mode.

tableLen

Input

Table length, fixed at 32 KB. The system verifies the length internally.

tableData

Input

Pointer to the feature value table, which is stored contiguously based on the feature length.

tableDataLen

Input

Length of the memory pointed by the tableData pointer, used for verification.

Returns

  • Success: a pointer to data of the aclfvQueryTable type
  • Failure: nullptr