// For back compatibility
if "iterators" in infos:
infos["loader_state_dict"] = {split: {"index_list": infos["split_ix"][split], "iter_counter": infos["iterators"][split]} for split in ["train", "val", "test"]}
loader.load_state_dict(infos["loader_state_dict"])
if opt.load_best_score == 1:
best_val_score = infos.get("best_val_score", None)
if opt.noamopt:
optimizer._step = iteration