Skip to content

Commit eedf679

Browse files
committed
fix xpu
1 parent f28e01d commit eedf679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/fluid/operators/optimizers/adam_op_xpu.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ class AdamOpXPUKernel : public framework::OpKernel<T> {
8686
mom2, ctx.GetPlace(),
8787
ctx.template device_context<platform::DeviceContext>(), &mom2_out);
8888
framework::TensorCopy(
89-
*beta1_pow, beta1_pow->place(),
89+
beta1_pow, beta1_pow.place(),
9090
ctx.template device_context<platform::DeviceContext>(),
9191
beta1_pow_out);
9292
framework::TensorCopy(
93-
*beta2_pow, beta2_pow->place(),
93+
beta2_pow, beta2_pow.place(),
9494
ctx.template device_context<platform::DeviceContext>(),
9595
beta2_pow_out);
9696
return;

0 commit comments

Comments
 (0)