Rate This Document
Findability
Accuracy
Completeness
Readability

LoadGraph

API Definition

int LoadGraph(const char *path, int level);

Function

Loads a searcher from a specified path.

Parameters

Parameter

Data Type

Description

Value Range

path

const char *

Path for loading the searcher.

The length must be less than 199 characters.

level

int

Quantization level.

[-1,3]

  • -1: Default value, indicating the quantization level saved during the SaveGraph operation.
  • 0: FP32 quantization.
  • 1: SQ8U quantization.
  • 2: SQ4U quantization.
  • 3: FP16 quantization.

Return Value

Data Type

Description

int

If the parameter value exceeds the value range or an I/O problem such as incorrect read path occurs, -1 is returned. In other cases, 0 is returned.