| 65 | } |
| 66 | |
| 67 | void Device::RunGraph(bool serial) { |
| 68 | bool previous_state = graph_enabled_; |
| 69 | graph_enabled_ = false; |
| 70 | |
| 71 | if (serial) { |
| 72 | // sequential execution |
| 73 | graph_->RunInSerial(); |
| 74 | } else { |
| 75 | // execute according to dependencies |
| 76 | graph_->RunGraph(); |
| 77 | } |
| 78 | |
| 79 | // graph_->Debug(); |
| 80 | |
| 81 | graph_enabled_ = previous_state; |
| 82 | } |
| 83 | |
| 84 | void Device::PrintTimeProfiling() { graph_->PrintTimeProfiling(); } |
| 85 |