-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fluid版本训练好的模型如何进行合并? #10990
Comments
@luotao1 Paddle/python/paddle/fluid/tests/book/test_image_classification.py Lines 216 to 217 in 60783a7
上面的是Python的,下面C++的是否也是这样使用的? Paddle/paddle/fluid/inference/tests/book/test_inference_image_classification.cc Lines 38 to 40 in 60783a7
谢谢 |
@luotao1 |
请问,以前那样加载预测模型是指?
C++的例子可以参考https://github.com/luotao1/fluid_inference_example/blob/master/example.cc#L43 我们最近会把inference的C++示例放入主干 @tensor-tang 。
这些是服务器端做预测使用的,你贴的链接是移动端预测用的。编译Fluid Inference库是指编译出libpaddle_fluid.so和相关的头文件,链接Fluid Inference库,是指在服务中怎么使用libpaddle_fluid.so。可以先参考上一条回答中的示例,近期我们会整理进主干。 |
@luotao1 Paddle/python/paddle/fluid/tests/book/test_image_classification.py Lines 216 to 217 in 60783a7
因为我看到 编译Fluid Inference库 得到的文件跟编译安装所需的Android参不多,所以想问,Fluid版本的是否也可以编译Android的PaddlePaddle库 |
|
@luotao1 收到,谢谢您的回答。 |
在Android设备或者是Linux下,使用的预测模型是合并的模型,在V2版本中,预测模型是一个
.tar.gz
的文件。但是在fluid版本的预测模型不是这样的了。那么如何合并模型呢?以下是V2的合并模型的代码:
The text was updated successfully, but these errors were encountered: