提交 e18a2697 编写于 作者: Y Yu Yang

Add debug code

上级 9cb8f503
......@@ -46,6 +46,8 @@ struct VarHandle : public VarHandleBase {
return ss.str();
}
// version field currently is not used, however, just store the version to
// debug easily.
size_t version_;
std::string name_;
platform::Place place_;
......@@ -742,7 +744,7 @@ void ParallelExecutor::RunOp(
auto op_run = [ready_buffer, op, this] {
try {
// TODO(yy) Check Previous Op has same dev ctx.
VLOG(10) << op->DebugString();
op->Run();
for (auto *ready : ready_buffer) {
*ready = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册