| 234 | } |
| 235 | |
| 236 | bool NodeExecutor::DevSyncRun(void* graph_handle) |
| 237 | { |
| 238 | NodeContext* context = reinterpret_cast<NodeContext*>(graph_handle); |
| 239 | |
| 240 | Subgraph* graph = context->optimized_graph; |
| 241 | |
| 242 | for(unsigned int i = 0; i < graph->seq_nodes.size(); i++) |
| 243 | { |
| 244 | Node* node = graph->seq_nodes[i]; |
| 245 | Operator* op = node->GetOp(); |
| 246 | |
| 247 | if(op->GetName() == "Const" || op->GetName() == "Input") |
| 248 | continue; |
| 249 | |
| 250 | node->SetAttr("DEV_RUN", true); |
| 251 | |
| 252 | if(!backend_dev_->SyncRun(context->dev_context, node)) |
| 253 | return false; |
| 254 | } |
| 255 | |
| 256 | return true; |
| 257 | } |
| 258 | |
| 259 | bool NodeExecutor::DevPostrun(void* graph_handle) |
| 260 | { |