aclfvCreateQueryTable

Applicable Products

Product

Supported

Ascend 950PR&950DT products

×

Atlas A3 products

×

Atlas A2 products

×

Atlas 200I/500 A2 inference products

×

Atlas inference products

√

Atlas training products

×

Description

Creates data of the aclfvQueryTable type that indicates the search input table information. To destroy data of the aclfvQueryTable type, call aclfvDestroyQueryTable.

Atlas inference accelerator modules do not support this API.

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, which is fixed at 1 in 1:N mode and can be up to 1024 in N:M mode.

tableLen

Input

Length of a table, which is fixed at 32 KB and is verified internally by the system.

tableData

Input

Pointer to the table of feature values, which are stored contiguously based on the feature length.

tableDataLen

Input

Length of the memory allocated for the tableData pointer, which is used for verification.

Return Value

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