File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33<h2 >代码目录</h2 >
44
55```
6- cpp
6+ tools/inference/ cpp
77|-- main.cpp # 工程 main 文件
88|-- src # cpp 文件
99|-- include # h 文件
2020<h2 >准备工作</h2 >
2121
22221 . 下载 PaddlePaddle C++ 预测库:[ C++ 预测库下载地址] ( https://paddleinference.paddlepaddle.org.cn/user_guides/download_lib.html ) ,下载后解压到 tools/inference/cpp 目录下
23- 2 . 引入百度 brpc 库 [ brpc 源码地址] ( https://github.com/apache/incubator-brpc ) ,下载后编译,编译输出文件放入 paddle_inference 目录下
23+ 2 . 引入百度 brpc 库 [ brpc 源码地址] ( https://github.com/apache/incubator-brpc ) ,下载后编译,编译输出文件放入 ./ paddle_inference 目录下
24243 . 训练保存好的模型和参数文件、推理样本文件
2525<h2 >paddlerec 中引入 cube 的背景</h2 >
2626
Original file line number Diff line number Diff line change 1- # 目录说明
1+ # 文件说明
221 . rec_inference.pdmodel、rec_inference.pdiparams:完整的模型和参数文件
332 . pruned_inference.pdmodel、pruned_inference.pdiparams:使用 cube 服务时所使用的裁剪后的模型和参数文件,相比 1,少了 lookup_table 层。
443 . rec_inference.zip:java 推理所使用的模型和参数文件压缩包
You can’t perform that action at this time.
0 commit comments