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

预测特别慢 #7

Open
Biaocsu opened this issue Jun 24, 2019 · 2 comments
Open

预测特别慢 #7

Biaocsu opened this issue Jun 24, 2019 · 2 comments

Comments

@Biaocsu
Copy link

Biaocsu commented Jun 24, 2019

你好,我使用你的代码intent.py对一个一个txt长文本进行预测,发现预测速度超级慢,一个文件估计要半分钟,很不合理,但是我没有检查出哪里有问题,你知道大概哪里有问题吗?(我利用pytorch版本的bert进行预测时一个txt长文本大约0.2秒)

@Biaocsu
Copy link
Author

Biaocsu commented Jun 25, 2019

预测代码有点问题,我修正了,但是现在预测一个长文本平均还是需要5s,这和pytorch相差较大,理论来说就算是CPU也不会这么慢

@Adherer
Copy link

Adherer commented Aug 26, 2019

能方便告知一下如何修改的吗?

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

No branches or pull requests

2 participants