aclfvCreateQueryTable

Applicability

Product

Supported

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

Description

Creates data of the aclfvQueryTable type as a search input table. To destroy data of the aclfvQueryTable type, see aclfvDestroyQueryTable.

The Atlas inference accelerator modules does not support this API.

Prototype

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 the N:M scenario.

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