From 5aa8faa2af8f4b008464e470bf85ee84dab642e6 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Mon, 10 May 2021 18:47:41 +0800 Subject: [PATCH] fix npu compile error (#32820) --- paddle/fluid/operators/optimizers/adam_op_npu.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/paddle/fluid/operators/optimizers/adam_op_npu.cc b/paddle/fluid/operators/optimizers/adam_op_npu.cc index 343a6704388..806e0fda07b 100644 --- a/paddle/fluid/operators/optimizers/adam_op_npu.cc +++ b/paddle/fluid/operators/optimizers/adam_op_npu.cc @@ -36,7 +36,6 @@ class AdamNPUKernel : public framework::OpKernel { "but the received is %s", ctx.InputNames("Param").front(), framework::ToTypeName(param_var->Type()))); - T epsilon = static_cast(ctx.Attr("epsilon")); auto* param = ctx.Input("Param"); auto* grad_var = ctx.InputVar("Grad"); PADDLE_ENFORCE_EQ(grad_var->IsType(), true, -- GitLab