Skip to content

Commit

Permalink
remove shortform (rwth-i6#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus1806 authored and JackTemaki committed Mar 22, 2024
1 parent 8f5d2a5 commit 0bec0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/torch_avg_checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def merge_checkpoints(in_ckpts: Sequence[str], out_ckpt: str, extra_state: Optio

# Average
for k in out_model_state:
out_model_state[k] /= out_model_state_num[k]
out_model_state[k] = out_model_state[k] / out_model_state_num[k]

if extra_state:
out_state.update(extra_state)
Expand Down

0 comments on commit 0bec0cc

Please sign in to comment.