SetArchiveInput
Function Usage
In Archive mode, the caller constructs the corresponding feature array and index array and transfers the arrays to the FeatureClustering object to complete the setting of the data input. The number of input data must be the same as the value of FeatureCount in confMap.
In the current confMap, FeatureSource must be set to INTERFACE, indicating that the data comes from the memory pointer called by the API. ArchiveMode must be set to ARCHIVE, indicating the archiving mode.
If indices is a null vector, AscendHac automatically generates consecutive digits of uint64_t starting from 0 as the index of the input feature vector.
Prototype
APP_ERROR SetArchiveInput(std::vector<float> &features, std::vector<uint64_t> &indices);
Parameter Description
Parameter |
Description |
|---|---|
features |
Feature vector array. The length of the array must be equal to the value of FeatureDim x FeatureCount. |
indices |
Index array corresponding to the feature vector. The length must be equal to the value of FeatureCount. If the length is 0, the indices starting from 0 that are generated by clustering are used by default. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
|