Function: create_search_input

C Prototype

aclfvSearchInput *aclfvCreateSearchInput(aclfvQueryTable *queryTable, aclfvRepoRange *repoRange, uint32_t topk)

Python Function

search_input = acl.fv.create_search_input(query_table, repo_range, topk)

Function Usage

Creates data of the aclfvSearchInput type as the input of a search task.

To destroy data of the aclfvSearchInput type, call Function: destroy_search_input.

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_table: int, address of the pointer that points to search input table.

    Call acl.fv.create_query_table to create data of the aclfvQueryTable type.

  • repo_range: int, address of the pointer that points to feature repository search range.

    Call acl.fv.create_repo_range to create data of the aclfvRepoRange type.

  • topk: number of results to return per search request.

Return Value

search_input: int, pointer address.

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

Restrictions

None