LoadFromSerializedModelArray

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <graph/graph.h>
  • Library file: libgraph.so

Function Usage

Restores a graph from the serialized data of ModelDef.

Prototype

1
graphStatus LoadFromSerializedModelArray(const void *serialized_model, size_t size)

Parameters

Parameter

Input/Output

Description

serialized_model

Input

Pointer to the serialized data of ModelDef.

size

Input

Length of the serialized data of ModelDef.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure.

Restrictions

Only AIR files can be read.