Skip to content

Commit 6e20c18

Browse files
committed
Update training.py
1 parent 5e79487 commit 6e20c18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

deepmd/pt/train/training.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ def warm_up_linear(step, warmup_steps):
622622
self.wrapper.parameters(),
623623
lr=self.lr_exp.start_lr,
624624
weight_decay=float(self.opt_param["weight_decay"]),
625+
fused=False if DEVICE.type == "cpu" else True,
625626
)
626627
if optimizer_state_dict is not None and self.restart_training:
627628
self.optimizer.load_state_dict(optimizer_state_dict)

0 commit comments

Comments
 (0)