SetGraphConstMemoryBase

函数功能

设置Graph的Const内存基址。内存大小从GetCompiledGraphSummary>GetConstMemorySize接口中获取。

函数原型

1
Status SetGraphConstMemoryBase(uint32_t graph_id, const void *const memory, size_t size)

参数说明

参数名

输入/输出

描述

graph_id

输入

子图对应的id。

memory

输入

设置的const内存基地址。

size

输入

设置的const内存大小。

返回值

参数名

类型

描述

-

Status

SUCCESS:设置成功。

FAILED:设置失败。

约束说明