提交 9d3d82f9 编写于 作者: Y Yang Yang(Tony) 提交者: GitHub

Update executor.md

上级 11c6dc67
...@@ -17,7 +17,7 @@ void Executor::Run(const ProgramDesc& pdesc, Scope* scope, int block_id) { ...@@ -17,7 +17,7 @@ void Executor::Run(const ProgramDesc& pdesc, Scope* scope, int block_id) {
// Run the block // Run the block
Scope& local_scope = scope->NewScope(); Scope& local_scope = scope->NewScope();
for (auto& op_desc : block.ops()) { for (auto& op_desc : block.ops()) {
for (auto& var : op_desc) { for (auto& var : op_desc.outputs()) {
for (auto& argu : var.arguments()) { for (auto& argu : var.arguments()) {
// Create temp variable in the local_scope // Create temp variable in the local_scope
if (local_scope.FindVar(argu) == nullptr) { if (local_scope.FindVar(argu) == nullptr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册