change start iteration for resume

This commit is contained in:
Bryan Marcus McCann 2018-06-24 14:34:02 +00:00
parent 913ee7368e
commit faa1ad382e
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ def train(args, model, opt, train_iters, train_iterations, field, rank=0, world_
"""main training function""" """main training function"""
logger = log(rank) logger = log(rank)
local_loss, num_examples, len_contexts, len_answers, iteration = 0, 0, 0, 0, 1 local_loss, num_examples, len_contexts, len_answers, iteration = 0, 0, 0, 0, start_iteration
train_iter_deep = deepcopy(train_iterations) train_iter_deep = deepcopy(train_iterations)
local_train_metric_dict = {} local_train_metric_dict = {}