Skip to content

[Bug]: Taskflow输出为空或者报错。 #6316

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

Closed
1 task done
xinliqingpi opened this issue Jul 6, 2023 · 2 comments
Closed
1 task done

[Bug]: Taskflow输出为空或者报错。 #6316

xinliqingpi opened this issue Jul 6, 2023 · 2 comments
Labels
bug Something isn't working triage

Comments

@xinliqingpi
Copy link

软件环境

- paddlepaddle:2.5.0
- paddlepaddle-gpu: 
- paddlenlp: 2.5.2

重复问题

  • I have searched the existing issues

错误描述

有时输出为空[{}],有时报一下错误
RuntimeError: (PreconditionNotMet) The meta data must be valid when call the mutable data function.
  [Hint: Expected valid() == true, but received valid():0 != true:1.] (at /paddle/paddle/phi/core/dense_tensor.cc:122)
  [operator < fill_constant > error]

稳定复现步骤 & 代码

from paddlenlp import Taskflow
from pprint import pprint

schema = ['情感倾向[正向,负向]']
senta = Taskflow("sentiment_analysis", model="uie-senta-base", schema=schema)
pprint(senta('蛋糕味道不错,店家服务也很好'))

@xinliqingpi xinliqingpi added the bug Something isn't working label Jul 6, 2023
@github-actions github-actions bot added the triage label Jul 6, 2023
@xinliqingpi
Copy link
Author

paddlepaddle:2.5.0 有bug 换成2.4.2就没问题。

@linjieccc
Copy link
Contributor

closing as duplicate of #6311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants