Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vince62s committed Nov 11, 2023
1 parent 9019b12 commit d357503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def load_state_dict(
offset = 0
buf_list = []
for buf_name, buf in self.named_buffers():
buf_list.append(buf_name)
buf_list.append(buf_name)
for name, module in self.named_modules():
named_buf_and_param = list(module.named_buffers()) + list(
module.named_parameters()
Expand Down

0 comments on commit d357503

Please sign in to comment.