kpccl_static_graph_destroy
销毁一个kpccl静态图。
接口定义
void kpccl_static_graph_destroy(kpccl_static_graph_h sgraph);
参数
参数名 |
类型 |
描述 |
输入/输出 |
|---|---|---|---|
sgraph |
kpccl_static_graph_h |
需要销毁的静态图 |
输入 |
示例
#include <stdio.h>
#include "kpccl.h"
int main()
{
kpccl_static_graph_h sgraph = kpccl_static_graph_create();
kpccl_static_graph_destroy(sgraph);
return 0;
}
上述示例演示了创建static graph并最后销毁的流程。上述kpccl_static_graph_destroy函数销毁了之前创建的静态图。
父主题: 计算图编程函数