remove useless comment in layer.cc, test=develop, test=document_fix (#23847)

revert-22778-infer_var_type
Zeng Jinle 5 years ago committed by GitHub
parent 1f8d8a5358
commit 82f3348ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -301,7 +301,6 @@ static void OpBaseRunImpl(const framework::OperatorBase& op,
}
}
// VLOG(3) << "Running Op " << op.Type();
VLOG(5) << LayerDebugString(op.Type(), ins, outs);
auto prepared_op = PreparedOp::Prepare(ins, outs, *op_kernel, place, attrs);
@ -351,7 +350,6 @@ static void ClearNoNeedBufferInputs(OpBase* op) {
PADDLE_ENFORCE_EQ(var.IsType<framework::LoDTensor>(), true,
platform::errors::PermissionDenied(
"NoNeedBufferVars only support LoDTensor"));
// TODO(zjl): support higher order derivatives
auto new_var = new VariableWrapper(each_var->Name());
auto* new_tensor =
new_var->MutableVar()->GetMutable<framework::LoDTensor>();

Loading…
Cancel
Save