Skip to content

Commit

Permalink
print loaded parameters in training
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianyu Gao committed Sep 29, 2020
1 parent fa100a9 commit 12f7c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fewshot_re_kit/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ def train(self,
own_state = model.state_dict()
for name, param in state_dict.items():
if name not in own_state:
print('ignore {}'.format(name))
continue
print('load {} from {}'.format(name, load_ckpt))
own_state[name].copy_(param)
start_iter = 0
else:
Expand Down

0 comments on commit 12f7c49

Please sign in to comment.