aclfvCreateSearchInput

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 aclfvSearchInput type that indicates the input information for a search task. To destroy data of the aclfvSearchInput type, call aclfvDestroySearchInput.

Atlas inference accelerator modules do not support this API.

Prototype

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

Parameters

Parameter

Input/Output

Description

queryTable

Input

Pointer to the search input table information.

The aclfvCreateQueryTable API must be called to create data of the aclfvQueryTable type.

repoRange

Input

Pointer to the feature repository range.

The aclfvCreateRepoRange API must be called to create data of the aclfvRepoRange type.

topk

Input

Number of results to return per search request.

Return Value

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