revert local scope to TODO

revert-4814-Add_sequence_project_op
qijun 8 years ago
parent f087533cc3
commit a7d700e0ba

@ -56,7 +56,9 @@ void Executor::Run(const ProgramDesc& pdesc, Scope* scope) {
auto& block = pdesc.blocks(0);
auto& device = device_contexts_[0];
Scope& local_scope = scope->NewScope();
// TODO(tonyyang-svail):
// - runs on a new local scope
// Scope& local_scope = scope->NewScope();
for (auto& var : block.vars()) {
scope->NewVar(var.name());
@ -65,7 +67,7 @@ void Executor::Run(const ProgramDesc& pdesc, Scope* scope) {
for (auto& op_desc : block.ops()) {
auto op = paddle::framework::OpRegistry::CreateOp(op_desc);
std::cout << op->DebugString() << std::endl;
op->Run(local_scope, *device);
op->Run(*scope, *device);
}
// TODO(tonyyang-svail): need to test gpu device

Loading…
Cancel
Save