Performs 1:N or N:M feature search. This API is synchronous.
The Ascend 310 AI Processor does not support this API.
The Ascend 910 AI Processor does not support this API.
The Ascend 310P1 AI Processor does not support this API.
Hardware has restrictions on the total number of streams. For details, see aclrtCreateStream.
aclError aclfvSearch(aclfvSearchType type, aclfvSearchInput *searchInput, aclfvSearchResult *searchRst)
Parameter |
Input/Output |
Description |
|---|---|---|
type |
Input |
Type of feature search scenario. |
searchInput |
Input |
Pointer to the search input. Call aclfvCreateSearchInput to create data of the aclfvSearchInput type in advance. |
searchRst |
Output |
Pointer to the search result. Call aclfvCreateSearchResult to create data of the aclfvSearchResult type in advance. The queryCnt argument must be the same as that of searchInput. The number of returned search results is specified by the topk argument passed to the aclfvCreateSearchInput call and is also related to the topk setting when aclfvInit is called for initialization. If the topk argument passed to the aclfvCreateSearchInput call is greater than or equal to the topk setting, the number of returned search results is determined by the topk setting; otherwise, the number of returned search results is determined by the topk argument passed to the aclfvCreateSearchInput call. |
0 on success; else, failure.