Skip to content

Commit dbd895e

Browse files
restorecode
1 parent 41e33b5 commit dbd895e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backends/sdaa/sdaa_ext/python/custom_parallel/Adam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _append_optimize_op(self, block, param_and_grad):
292292
moment1_ = moment1
293293
moment2_ = moment2
294294

295-
_, _, _, _, _, *_ = paddle._C_ops.adam_(
295+
_, _, _, _, _, _ = paddle._C_ops.adam_(
296296
param_,
297297
grad_,
298298
lr,

backends/sdaa/sdaa_ext/python/custom_parallel/AdamW.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def _append_optimize_op(self, block, param_and_grad):
294294
moment1_ = moment1
295295
moment2_ = moment2
296296

297-
_, _, _, _, _, *_ = paddle._C_ops.adamw_(
297+
_, _, _, _, _, _ = paddle._C_ops.adamw_(
298298
param_,
299299
grad_,
300300
lr,

0 commit comments

Comments
 (0)