提交 2b1ecdf5 编写于 作者: Q qiaolongfei

update comment

上级 daa0fbd5
...@@ -352,8 +352,8 @@ void Executor::RunPreparedContext(ExecutorPrepareContext* ctx, Scope* scope, ...@@ -352,8 +352,8 @@ void Executor::RunPreparedContext(ExecutorPrepareContext* ctx, Scope* scope,
// some operators may create local scope when running, such as while_op. // some operators may create local scope when running, such as while_op.
// But when while_op also create a local executor to run it's sub block, // But when while_op also create a local executor to run it's sub block,
// the sub scopes it created should not be dropped immediately, because // the sub scopes it created should not be dropped immediately, because
// while_grad_op will use some variables during while_op run, so we need // while_grad_op will use some variables created during while_op run, so
// to keep the kids and wait for the outer executor to drop them. // we need to keep the kids and wait for the outer executor to drop them.
scope->DropKids(); scope->DropKids();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册