LoadFromMem

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

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

Function Usage

Reads the serialized graph from the memory.

Prototype

1
2
graphStatus LoadFromMem(const GraphBuffer &graph_buffer)
graphStatus LoadFromMem(const uint8_t *data, const size_t len)

Parameters

Parameter

Input/Output

Description

graph_buffer

Input

Buffer of the graph to be read.

data

Input

Start position of the memory of the graph to be read.

len

Input

Memory length of the graph to be read.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure.

Constraints

Only AIR files can be read.