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 <jlisiecki@nvidia.com>
Showing
Please register or sign in to comment