| 129 | } |
| 130 | |
| 131 | StaticNode* FindNode(StaticGraph* graph, const std::string& node_name) |
| 132 | { |
| 133 | int node_number = graph->node_list.size(); |
| 134 | |
| 135 | for(int i = 0; i < node_number; i++) |
| 136 | { |
| 137 | StaticNode* node = graph->node_list[i].get(); |
| 138 | |
| 139 | if(node->name == node_name) |
| 140 | return node; |
| 141 | } |
| 142 | |
| 143 | return nullptr; |
| 144 | } |
| 145 | |
| 146 | StaticTensor* FindTensor(StaticGraph* graph, const std::string& tensor_name) |
| 147 | { |
no test coverage detected