Skip to content

Commit

Permalink
rm del dataloader
Browse files Browse the repository at this point in the history
  • Loading branch information
gongel committed Mar 21, 2022
1 parent 3fd0142 commit f7930e0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/language_model/ernie-m/run_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ def do_train(args):
evaluate(model, loss_fct, metric, test_data_loader,
language)
print("eval done total : %s s" % (time.time() - tic_eval))
del test_data_loader
if paddle.distributed.get_rank() == 0:
output_dir = os.path.join(args.output_dir,
"ernie_m_ft_model_%d.pdparams" %
Expand All @@ -358,7 +357,6 @@ def do_train(args):
model_to_save.save_pretrained(output_dir)
tokenizer.save_pretrained(output_dir)
if global_step >= num_training_steps:
del train_data_loader
break
if global_step >= num_training_steps:
break
Expand Down

0 comments on commit f7930e0

Please sign in to comment.