LoadFromMem

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

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

Memory start position 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.

Restrictions

Only AIR files can be read.