From 4b4a9cc88f8cd7aa72505ae9df759d0e3286a9fa Mon Sep 17 00:00:00 2001 From: bingyanghuang <33643817+bingyanghuang@users.noreply.github.com> Date: Tue, 7 Jan 2020 13:14:54 +0800 Subject: [PATCH] fix format in operator.cc (#22101) --- paddle/fluid/framework/operator.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 3ea2019073b..2cfc4d71a38 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -1181,17 +1181,14 @@ Scope* OperatorWithKernel::PrepareData( // In the inference scenerio, the scopes will be reused across the // batches, so the `new_scope` here will result in GPU memroy explosion // over the running of operators. - // We use a thread_local cache to fix that issue, the key in the cache - // is + // We use a thread_local cache to fix that issue, the key in the cache is // the combination of the `scope` argument, from_kernel_type, // target_kernel_type. // Have a discussion with @Superjomn or the inference developers if some // changes on this logic for this macro might not tested on the other // scenerios. - // If this op is not called by an Executor or ParallelExecutor, it - // should - // called by a NaiveExecutor, the NaiveExecutor will cache the scopes - // and + // If this op is not called by an Executor or ParallelExecutor, it should + // called by a NaiveExecutor, the NaiveExecutor will cache the scopes and // variables, that behavior a lot different. // // To solve issue #15032, have a discussion with @Luotao for cpu -- GitLab