ConstructFromInputs
函数原型
static GraphPtr ConstructFromInputs(const std::vector<Operator> &inputs, const AscendString &name);
参数说明
参数名  | 
输入/输出  | 
描述  | 
|---|---|---|
inputs  | 
输入  | 
整图输入的operator。  | 
name  | 
输入  | 
Graph的名字。  | 
返回值
参数名  | 
类型  | 
描述  | 
|---|---|---|
-  | 
GraphPtr  | 
图指针,返回新构造的图。  | 
调用示例
1 2 3  | GraphPtr graph; graph = Graph::ConstructFromInputs(inputs, graph_name); graph->SetOutputs(outputs);  | 
父主题: Graph类