Commit 6c186b3
authored
Fix lack of proper loading of best_prec1 from the checkpoint (#1000)
- resume() is a nested function and when it loads best_prec1
it creates a local variable that hides the one from the parent
function (which refers to the global one). This PR adds `global`
to modify the global variable as intended
Signed-off-by: Janusz Lisiecki <[email protected]>1 parent 6b7e77b commit 6c186b3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments