未验证 提交 d4b4fa04 编写于 作者: Z Zeng Jinle 提交者: GitHub

remove useless comment in layer.cc, test=release/2.0, test=document_fix (#23848)

上级 98c345a3
...@@ -301,7 +301,6 @@ static void OpBaseRunImpl(const framework::OperatorBase& op, ...@@ -301,7 +301,6 @@ static void OpBaseRunImpl(const framework::OperatorBase& op,
} }
} }
// VLOG(3) << "Running Op " << op.Type();
VLOG(5) << LayerDebugString(op.Type(), ins, outs); VLOG(5) << LayerDebugString(op.Type(), ins, outs);
auto prepared_op = PreparedOp::Prepare(ins, outs, *op_kernel, place, attrs); auto prepared_op = PreparedOp::Prepare(ins, outs, *op_kernel, place, attrs);
...@@ -351,7 +350,6 @@ static void ClearNoNeedBufferInputs(OpBase* op) { ...@@ -351,7 +350,6 @@ static void ClearNoNeedBufferInputs(OpBase* op) {
PADDLE_ENFORCE_EQ(var.IsType<framework::LoDTensor>(), true, PADDLE_ENFORCE_EQ(var.IsType<framework::LoDTensor>(), true,
platform::errors::PermissionDenied( platform::errors::PermissionDenied(
"NoNeedBufferVars only support LoDTensor")); "NoNeedBufferVars only support LoDTensor"));
// TODO(zjl): support higher order derivatives
auto new_var = new VariableWrapper(each_var->Name()); auto new_var = new VariableWrapper(each_var->Name());
auto* new_tensor = auto* new_tensor =
new_var->MutableVar()->GetMutable<framework::LoDTensor>(); new_var->MutableVar()->GetMutable<framework::LoDTensor>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册