getBaseSize
API定义 |
size_t getBaseSize(int deviceId) const |
---|---|
功能描述 |
获取该AscendIndexFlat在特定“deviceId”上管理的特征向量数量。 |
输入 |
int deviceId:NPU侧芯片名。 |
输出 |
无 |
返回值 |
在特定“deviceId”上的特征向量数量。 |
约束说明 |
“deviceId”需要为合法的芯片ID。 |
父主题: AscendIndexFlat
API定义 |
size_t getBaseSize(int deviceId) const |
---|---|
功能描述 |
获取该AscendIndexFlat在特定“deviceId”上管理的特征向量数量。 |
输入 |
int deviceId:NPU侧芯片名。 |
输出 |
无 |
返回值 |
在特定“deviceId”上的特征向量数量。 |
约束说明 |
“deviceId”需要为合法的芯片ID。 |