GetFeaturesOnDevice
API definition |
APP_ERROR GetFeaturesOnDevice (int n, float16_t *features, const idx_t *indices); |
|---|---|
Function |
Queries n feature vectors with specified indexes. The output data is stored on the device. |
Input |
int n: number of vectors to be obtained. const idx_t *indices: index corresponding to a feature vector. The length is n. |
Output |
float16_t *features: device pointer, indicating the feature vector corresponding to an index. The length is n × dim (vector dimension). |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
|
API definition |
APP_ERROR GetFeaturesOnDevice (int n, float *features, const idx_t *indices); |
|---|---|
Function |
Queries n feature vectors with specified indexes. The output data is stored on the device. |
Input |
int n: number of vectors to be obtained. const idx_t *indices: index corresponding to a feature vector. The length is n. |
Output |
float *features: device pointer, indicating the feature vector corresponding to an index. The length is n × dim (vector dimension). |
Return value |
APP_ERROR: return status. For details, see Return Code Reference. |
Restrictions |
|