| 159 | } |
| 160 | |
| 161 | StaticTensor* FindConstTensor(StaticGraph* graph, const std::string& tensor_name) |
| 162 | { |
| 163 | auto ir = graph->const_tensor_map.begin(); |
| 164 | auto end = graph->const_tensor_map.end(); |
| 165 | |
| 166 | while(ir != end) |
| 167 | { |
| 168 | StaticTensor* tensor = ir->second.get(); |
| 169 | |
| 170 | if(tensor->name == tensor_name) |
| 171 | return tensor; |
| 172 | |
| 173 | ir++; |
| 174 | } |
| 175 | |
| 176 | return nullptr; |
| 177 | } |
| 178 | |
| 179 | void AddGraphInputNode(StaticGraph* graph, StaticNode* node) |
| 180 | { |
no test coverage detected