BuildGraph
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
x |
|
√ |
|
√ |
|
x |
功能说明
同步编译指定id对应的Graph图,生成可用于执行的模型。
函数原型
1 2 | Status BuildGraph(uint32_t graph_id, const std::vector<InputTensorInfo> &inputs) Status BuildGraph(uint32_t graph_id, const std::vector<ge::Tensor> &inputs) |
参数说明
参数名 |
输入/输出 |
说明 |
---|---|---|
graph_id |
输入 |
子图对应的id。 |
inputs |
输入 |
当前子图对应的输入数据。 InputTensorInfo结构体定义请参见InputTensorInfo。 |
返回值说明
参数名 |
类型 |
说明 |
---|---|---|
- |
Status |
SUCCESS:编译子图成功。 FAILED:编译子图失败。 |
约束说明
无
父主题: Graph运行接口