| 144 | } |
| 145 | |
| 146 | StaticTensor* FindTensor(StaticGraph* graph, const std::string& tensor_name) |
| 147 | { |
| 148 | int tensor_number = graph->tensor_list.size(); |
| 149 | |
| 150 | for(int i = 0; i < tensor_number; i++) |
| 151 | { |
| 152 | StaticTensor* tensor = graph->tensor_list[i].get(); |
| 153 | |
| 154 | if(tensor->name == tensor_name) |
| 155 | return tensor; |
| 156 | } |
| 157 | |
| 158 | return nullptr; |
| 159 | } |
| 160 | |
| 161 | StaticTensor* FindConstTensor(StaticGraph* graph, const std::string& tensor_name) |
| 162 | { |
no test coverage detected