AscendIndexVStar接口

- 创建Index实例时传入的参数params,需根据实际情况设置其中的params.dim。
- params.subSpaceDim和params.nlist应与码本训练时对应参数保持一致。
API定义 |
explicit AscendIndexVStar(const AscendIndexVstarInitParams& params); |
---|---|
功能描述 |
AscendIndexVStar的构造函数,根据params中配置的值构造对应维度的Index。 |
输入 |
const AscendIndexVstarInitParams& params:构造配置参数,具体请参见12.5.13.3-AscendIndexVstarInitParams。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
API定义 |
AscendIndexVStar(const std::vector<int>& deviceList, bool verbose = false); |
---|---|
功能描述 |
AscendIndexVStar的构造函数,根据deviceList构造未知输入数据维度和超参的Index。 |
输入 |
const std::vector<int>& deviceList:device侧设备ID。 bool verbose:是否开启“verbose”选项,开启后部分操作提供额外的打印提示。默认值为“false”。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
|
API定义 |
AscendIndexVStar(const AscendIndexVStar&) = delete; |
---|---|
功能描述 |
声明此index拷贝构造函数为空,即不可拷贝类型。 |
输入 |
const AscendIndexVStar&:AscendIndexVStar对象。 |
输出 |
无 |
返回值 |
无 |
约束说明 |
无 |
父主题: AscendIndexVStar