SetHyperSearchParams

API definition

APP_ERROR SetHyperSearchParams(const AscendIndexVstarHyperParams& params);

Function

Sets hyperparameters for AscendIndexVstar instance retrieval.

Input

const AscendIndexVstarHyperParams& params: hyperparameter for retrieval. For details, see AscendIndexVstarHyperParams.

Output

N/A

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • nProbeL1 ∈ (16, nListL1]; nProbeL1 % 8 == 0
  • nProbeL2 ∈ (16, nProbeL1 * nList2]; nProbeL2 % 8 == 0
  • l3SegmentNum ∈ (100,5000]; l3SegmentNum % 8 == 0