| 257 | } |
| 258 | |
| 259 | bool NodeExecutor::DevPostrun(void* graph_handle) |
| 260 | { |
| 261 | NodeContext* context = reinterpret_cast<NodeContext*>(graph_handle); |
| 262 | |
| 263 | Subgraph* graph = context->optimized_graph; |
| 264 | |
| 265 | for(unsigned int i = 0; i < graph->seq_nodes.size(); i++) |
| 266 | { |
| 267 | Node* node = graph->seq_nodes[i]; |
| 268 | |
| 269 | if(!node->ExistAttr("DEV_RUN")) |
| 270 | continue; |
| 271 | |
| 272 | if(!backend_dev_->Postrun(context->dev_context, node)) |
| 273 | return false; |
| 274 | } |
| 275 | |
| 276 | return true; |
| 277 | } |
| 278 | |
| 279 | bool NodeExecutor::DevReleaseGraphHandle(void* graph_handle) |
| 280 | { |