Function: create_query_table

C Prototype

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

Python Function

query_table = acl.fv.create_query_table(query_cnt, table_len, table_data, table_data_len)

Function Usage

Creates data of the aclfvQueryTable type for the search input table.

To destroy data of the aclfvQueryTable type, call Function: destroy_query_table.

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

  • query_cnt: int, number of search requests, fixed to 1 in 1:N mode or up to 1024 in N:M mode.
  • table_len: int, table length, fixed to 32 KB. The system verifies the length internally.
  • table_data: int, feature values, which are stored contiguously based on the feature length.
  • table_data_len: int, length of the memory allocated by using tableData, used for verification.

Return Value

query_table: int, pointer address.

  • Success: data of the aclfvQueryTable type.
  • Failure: 0.

Restrictions

None