aclfvCreateSearchInput

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Creates data of the aclfvSearchInput type as the input of a search task. To destroy data of the aclfvSearchInput type, call aclfvDestroySearchInput.

Atlas inference accelerator module does 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 input query table.

Call aclfvCreateQueryTable to create data of the aclfvQueryTable type.

repoRange

Input

Pointer to the repository range to search.

Call aclfvCreateRepoRange to create data of the aclfvRepoRange type in advance.

topk

Input

Number of results to return per search request

Returns

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