We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
看到例子,下面代码就是最后的了,应该是预测的结果获取
Paddle/paddle/capi/examples/model_inference/dense/main.c
Lines 97 to 106 in ffda2c4
而使用Python的,预测的代码是下面这一条,所以cpp中的array是不是就是Python中的probs
array
probs
probs = paddle.infer(output_layer=predict, parameters=parameters, input=test_data)
The text was updated successfully, but these errors were encountered:
@yeyupiaoling 是不是在用 Fluid 训练模型,同时寻求 inference 的做法?
我理解如果是Fluid训练的模型,可能就不能用这个被称为 C-API 的inference library来做inference了,而需要使用 Fluid 的inference 方法。请 @Xreki @kexinzhao 确认一下吧。我们也是有Fluid 的inference 的例子的。
Sorry, something went wrong.
@wangkuiyi 您好,我不是使用Fluid的,是使用Paddle 1的,然后编译放到Android上的,官方有个例子,我有几个问题不懂
哦。这个可能得 @Xreki 帮着看看呢。
Line 97 in ffda2c4
probs = paddle.infer( output_layer=out, parameters=parameters, input=test_data)
获得同样的结果。
kexinzhao
Xreki
No branches or pull requests
看到例子,下面代码就是最后的了,应该是预测的结果获取
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: