Skip to content

Commit

Permalink
remove unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
caic99 authored and iProzd committed Nov 27, 2024
1 parent b73e5b1 commit f7265a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/pt/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def step(_step_id, task_key="Default") -> None:
)
loss.backward()
if self.gradient_max_norm > 0.0:
grad_norm = torch.nn.utils.clip_grad_norm_(
torch.nn.utils.clip_grad_norm_(
self.wrapper.parameters(),
self.gradient_max_norm,
error_if_nonfinite=True,
Expand Down

0 comments on commit f7265a3

Please sign in to comment.