Skip to content

Commit

Permalink
[bugfix] fix erniedoc (#8393)
Browse files Browse the repository at this point in the history
* fix erniedoc

* revert
  • Loading branch information
w5688414 authored May 17, 2024
1 parent d9dcd9a commit 9381e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/text_classification/ernie_doc/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ def do_train(args):
)
# Copy the memory
memories = create_memory()
predict(model, test_dataloader, args.file_path, memories, test_ds.label_list)
logger.info("Done Predicting the results has been saved in file: {}".format(args.file_path))
predict(model, test_dataloader, args.test_results_file, memories, test_ds.label_list)
logger.info("Done Predicting the results has been saved in file: {}".format(args.test_results_file))


if __name__ == "__main__":
Expand Down

0 comments on commit 9381e9f

Please sign in to comment.