Commit 677175ea by Siva Committed by Tianqi Chen

[Graph Debug] bug fix (#897)

Need to break after executing intended operation (not before).
parent de8d4a4d
......@@ -138,8 +138,8 @@ class GraphRuntime : public ModuleNode {
uint32_t eid = index;
for (size_t i = 0; i < op_execs_.size(); ++i) {
if (static_cast<int>(i) == index) break;
if (op_execs_[i]) op_execs_[i]();
if (static_cast<int>(i) == index) break;
}
TVM_CCALL(TVMArrayCopyFromTo(&data_entry_[eid], data_out, nullptr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment