We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e79487 commit 6e20c18Copy full SHA for 6e20c18
1 file changed
deepmd/pt/train/training.py
@@ -622,6 +622,7 @@ def warm_up_linear(step, warmup_steps):
622
self.wrapper.parameters(),
623
lr=self.lr_exp.start_lr,
624
weight_decay=float(self.opt_param["weight_decay"]),
625
+ fused=False if DEVICE.type == "cpu" else True,
626
)
627
if optimizer_state_dict is not None and self.restart_training:
628
self.optimizer.load_state_dict(optimizer_state_dict)
0 commit comments