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

C-API的通用预测程序 #2853

Closed
fty8788 opened this issue Jul 13, 2017 · 10 comments
Closed

C-API的通用预测程序 #2853

fty8788 opened this issue Jul 13, 2017 · 10 comments

Comments

@fty8788
Copy link

fty8788 commented Jul 13, 2017

现阶段C-API的使用介绍感觉比较简单,不够具体,导致初学者开发预测程序的难度不小。
能否提供基于C-API的通用预测程序,包括加载模型、读入测试数据、计算模型输出等基本功能。

@jacquesqiao
Copy link
Member

@jacquesqiao jacquesqiao self-assigned this Jul 14, 2017
@jacquesqiao
Copy link
Member

请问是厂里的同学么?

@lcy-seso
Copy link
Contributor

lcy-seso commented Jul 14, 2017

@fty8788 是对的,我们不能只靠这样一个简单的文档来说明CAPI的使用,必须有例子。已经开始计划给models 下面的例子加上 CAPI 预测接口,完成日期待进一步确认告知大家。

我们在 models project 下提了同样的issue: PaddlePaddle/models#158

@fty8788
Copy link
Author

fty8788 commented Jul 15, 2017

赞,多谢两位

@lcy-seso
Copy link
Contributor

@fty8788 在这个issue 下回复各位此事的进度。

@Jarlonyan
Copy link

Jarlonyan commented Aug 1, 2017

@fty8788 ,2楼给的文档还是太简单啊。。我的问题是,模型输入不是dense,sparse-weight, sparse-non-weight,而是这三种的混合。请问有没有demo啊??还有,有没有封装成.a的静态库啊??

paddle的同学说在 http://wiki.baidu.com/pages/viewpage.action?pageId=333193833 中下载静态库,我将静态库链接入我的程序,没有问题,但是 https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/capi/examples/model_inference 里面的examples跑不通啊。。。。

@guoshengCS
Copy link
Contributor

@Jarlonyan
Copy link

@guoshengCS ,你说的这个库我也用了,也不行。。。请问有没有文档。

@guoshengCS
Copy link
Contributor

对于Hi中提供的未找到头文件的报错信息,可以尝试下按报错从Paddle代码中提取头文件组织下include的目录结构

@Jarlonyan
Copy link

这个问题,我踩的坑比较多,编译链接了一天。 guoshengCS 上面提供了静态库的下载链接。。。

  1. 开始的时候,按照 http://wiki.baidu.com/pages/viewpage.action?pageId=333193833, 只链接paddle中的库,错误
  2. 然后将那四个压缩包解压缩,find所有的.a文件,将所有的库链接进去,还是错误。
  3. 最后,我只将其中的mkl目录和 third_party/install目录下的静态库链接进去, OK了。
    这里记录下,希望大家不要犯跟我一样的低级错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants