首页 PaddleNLP 帖子详情
使用document_intelligence的TaskFlow,报错
收藏
快速回复
PaddleNLP 问答NLP 1022 3
使用document_intelligence的TaskFlow,报错
收藏
快速回复
PaddleNLP 问答NLP 1022 3
【问题描述】
 
docprompt = Taskflow("document_intelligence", use_mkldnn=True)  
 
使用CPU跑文档理解,下载完模型就报错了。
 
RuntimeError: (NotFound) Operator (one_hot) is not registered.
[Hint: op_info_ptr should not be null.] (at ..\paddle/fluid/framework/op_info.h:152)
 
 
【尝试过的方案】
 
paddle.nn.functional.one_hot发现这个one_hot Python环境里有。现在的版本信息如下。
 
0
收藏
回复
全部评论(3)
时间顺序
人间合格
#2 回复于2024-02

我为和你一样,年前还能跑,年后回来跑不了了

0
回复
名字真傻
#3 回复于2024-03

解决了吗?请问


0
回复
H
Henry_Li
#4 回复于2024-09

回退版本至2.5.2即可解决,回退时注意依赖关系

 

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户