MCPcopy Create free account
hub / github.com/apache/singa / RunGraph

Method RunGraph

src/core/device/device.cc:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void 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
84void Device::PrintTimeProfiling() { graph_->PrintTimeProfiling(); }
85

Callers 5

wrapperMethod · 0.45
TEST_FFunction · 0.45
wrapperMethod · 0.45
wrapperMethod · 0.45
wrapperMethod · 0.45

Calls 1

RunInSerialMethod · 0.80

Tested by 1

TEST_FFunction · 0.36