使用document_intelligence的TaskFlow,报错
收藏
【问题描述】
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)
[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
收藏
请登录后评论
我为和你一样,年前还能跑,年后回来跑不了了
解决了吗?请问
回退版本至2.5.2即可解决,回退时注意依赖关系