Rate This Document
Findability
Accuracy
Completeness
Readability

loadGraph

API Definition

def load(path: string, level: int) -> int

Function

Loads a searcher from a specified path.

Parameters

Parameter

Description

Data Type

Value Range

path

Path for loading the searcher.

Character string

The length must be less than 199 characters.

level

Quantization level.

int

[-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

This API is a wrapper for an underlying C++ API, which controls exception handling.