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

使用CAPI进行预测, 对应的data provider.py该怎么写? #5393

Closed
ziyenano opened this issue Nov 6, 2017 · 4 comments
Closed

使用CAPI进行预测, 对应的data provider.py该怎么写? #5393

ziyenano opened this issue Nov 6, 2017 · 4 comments
Labels
User 用于标记用户问题

Comments

@ziyenano
Copy link

ziyenano commented Nov 6, 2017

RT,
https://github.com/PaddlePaddle/Paddle/tree/develop/paddle/capi/examples/model_inference,
这几个example好像都没有涉及到data provider的问题.
Btw, capi相关的能给出一个具体的demo吗, 内网以及github上的文档感觉都不是很完整.

@luotao1
Copy link
Contributor

luotao1 commented Nov 6, 2017

  1. c-api不需要data provider。
  2. 这部分的例子,我们目前正在做,还没有merge中。您可以先参考以下几个:

@lcy-seso lcy-seso added the User 用于标记用户问题 label Nov 6, 2017
@ziyenano
Copy link
Author

ziyenano commented Nov 6, 2017

多谢, 但是我的数据在data_provider中进行了转化, 转成了spare_binary格式
image
如果不需要dp, 需要在哪边添加上转化数据的步骤

@luotao1
Copy link
Contributor

luotao1 commented Nov 6, 2017

请先学习下上面的几个例子,了解下c-api的运行原理和流程。

@peterzhang2029
Copy link
Contributor

Closing due to low activity. Feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

4 participants