hmct.api.load_model

The model loading function is provided by HMCT to load an onnx model with a specified path for subsequent model conversion.

Interface Form

def load_model(onnx_model_file: str) -> "ModelProto"

Parameter

onnx_model_file, string data type, mandatory, onnx model file path.

Return Value

The onnx ModelProto object.