aclfvInit
Applicable Products
Product |
Supported |
|---|---|
X |
|
X |
|
X |
|
X |
|
√ |
|
X |
Function
Initializes the feature search module. aclfvInit can be called only once in a process, and must be used in pair with aclfvRelease.
The feature vector search function depends on the header file in the ${INSTALL_DIR}/include/acl/ops/acl_fv.h directory and the library file in the ${INSTALL_DIR}/lib64/libacl_retr.so directory. Replace ${INSTALL_DIR} with the CANN component directory. For example, if the installation is performed by the root user, the default file storage path is /usr/local/Ascend/cann.
Prototype
1 | aclError aclfvInit(aclfvInitPara *initPara) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
initPara |
Input |
Pointer to the initialization parameters for feature vector search. For the type definition, see aclfvInitPara.
|
Returns
0 on success; otherwise, failure. For details, see aclError.