提交 4b4a9cc8 编写于 作者: B bingyanghuang 提交者: Tao Luo

fix format in operator.cc (#22101)

上级 434f7b9c
...@@ -1181,17 +1181,14 @@ Scope* OperatorWithKernel::PrepareData( ...@@ -1181,17 +1181,14 @@ Scope* OperatorWithKernel::PrepareData(
// In the inference scenerio, the scopes will be reused across the // In the inference scenerio, the scopes will be reused across the
// batches, so the `new_scope` here will result in GPU memroy explosion // batches, so the `new_scope` here will result in GPU memroy explosion
// over the running of operators. // over the running of operators.
// We use a thread_local cache to fix that issue, the key in the cache // We use a thread_local cache to fix that issue, the key in the cache is
// is
// the combination of the `scope` argument, from_kernel_type, // the combination of the `scope` argument, from_kernel_type,
// target_kernel_type. // target_kernel_type.
// Have a discussion with @Superjomn or the inference developers if some // Have a discussion with @Superjomn or the inference developers if some
// changes on this logic for this macro might not tested on the other // changes on this logic for this macro might not tested on the other
// scenerios. // scenerios.
// If this op is not called by an Executor or ParallelExecutor, it // If this op is not called by an Executor or ParallelExecutor, it should
// should // called by a NaiveExecutor, the NaiveExecutor will cache the scopes and
// called by a NaiveExecutor, the NaiveExecutor will cache the scopes
// and
// variables, that behavior a lot different. // variables, that behavior a lot different.
// //
// To solve issue #15032, have a discussion with @Luotao for cpu // To solve issue #15032, have a discussion with @Luotao for cpu
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册