rmlLoadGraphFromFile

Loads graph from a ptotobuf file.

rml_status rmlLoadGraphFromFile(

const rml_char* path,

rml_graph* graph);

API

Main

Parameters

Parameter

Input/Output

Description

path

input

Path to a graph in the TF or ONNX formats.

graph

output

A pointer to a resulting graph handle.

Return and Status Codes

Returns a valid graph handle in case of success and status:

  • RML_OK if the operation is successful

  • RML_ERROR_BAD_PARAMETER if path is NULL or graph is NULL

  • #RML_ERROR_FILE_NOT_FOUND if the model file is not found

  • #RML_ERROR_BAD_MODEL if the model contains an error

To get more details in case of failure, call rmlGetLastError().

The graph should be released with rmlReleaseGraph().