aclfvCreateSearchInput

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

X

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

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: This API is not supported.

Prototype

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

Parameters

Parameter

Input/Output

Description

queryTable

Input

Pointer to the search input table.

Call aclfvCreateQueryTable to create data of the aclfvQueryTable type.

repoRange

Input

Pointer to the repository range.

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