UpdateGraphFeatureMemoryBase

Description

Updates the feature memory base address of a graph. The memory size is obtained from GetCompiledGraphSummary > GetFeatureMemorySize.

Feature memory refers to the intermediate memory required during model execution (for example, the input and output memory of intermediate nodes).

Prototype

Status UpdateGraphFeatureMemoryBase(uint32_t graph_id, const void *const memory, size_t size);

Parameters

Parameter

Input/Output

Description

graph_id

Input

Subgraph ID.

memory

Input

Base address of the configured feature memory.

size

Input

Configured feature memory size.

Returns

Parameter

Type

Description

-

Status

SUCCESS: The setting is successful.

FAILED: The setting fails.

Restrictions