Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix textcnn inference and text_classification distributed training bugs #1839

Merged
merged 3 commits into from
Mar 28, 2022
Merged

fix textcnn inference and text_classification distributed training bugs #1839

merged 3 commits into from
Mar 28, 2022

Conversation

linjieccc
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

  • 修复情感分析textcnn部署预测示例,最新版本paddlepaddle的copy_from_cpu接口不再支持List[int]形式的输入,参考PR:Inference add type check in copy_from_cpu Paddle#36429
  • 修复文本分类pretrained_models案例在分布式训练下无法正常退出的问题
  • 更新Taskflow文档

@linjieccc linjieccc requested a review from wawltor March 28, 2022 05:48
@@ -220,8 +218,6 @@ def do_train():
tokenizer.save_pretrained(save_dir)
tic_train = time.time()

print("Speed: %.2f steps/s" % (global_step / total_train_time))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有个疑问 为什么要删除这样的速度代码了?

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wawltor wawltor merged commit 5463a3e into PaddlePaddle:develop Mar 28, 2022
@linjieccc linjieccc deleted the fix_bugs branch March 28, 2022 07:09
ZeyuChen pushed a commit to ZeyuChen/PaddleNLP that referenced this pull request Apr 17, 2022
fix textcnn inference and text_classification distributed training bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants