-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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如何获取预测结果 #8885
Labels
User
用于标记用户问题
Comments
@yeyupiaoling 是不是在用 Fluid 训练模型,同时寻求 inference 的做法? 我理解如果是Fluid训练的模型,可能就不能用这个被称为 C-API 的inference library来做inference了,而需要使用 Fluid 的inference 方法。请 @Xreki @kexinzhao 确认一下吧。我们也是有Fluid 的inference 的例子的。 |
@wangkuiyi |
哦。这个可能得 @Xreki 帮着看看呢。 |
通过这一行就可以获得的 array 跟
获得同样的结果。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
看到例子,下面代码就是最后的了,应该是预测的结果获取
Paddle/paddle/capi/examples/model_inference/dense/main.c
Lines 97 to 106 in ffda2c4
而使用Python的,预测的代码是下面这一条,所以cpp中的
array
是不是就是Python中的probs
The text was updated successfully, but these errors were encountered: