Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
53bba10e
S
Serving
项目概览
PaddlePaddle
/
Serving
1 年多 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
53bba10e
编写于
4月 08, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix dir
上级
4e044e34
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
65 addition
and
19 deletion
+65
-19
BCLOUD
BCLOUD
+2
-1
BCLOUD.client
BCLOUD.client
+1
-0
README.md
README.md
+3
-3
demo-client/BCLOUD
demo-client/BCLOUD
+58
-0
demo-serving/BCLOUD
demo-serving/BCLOUD
+1
-2
sdk-cpp/BCLOUD
sdk-cpp/BCLOUD
+0
-13
未找到文件。
BCLOUD
浏览文件 @
53bba10e
...
...
@@ -23,5 +23,6 @@ Directory('pdcodegen')
Directory
(
'configure'
)
Directory
(
'predictor'
)
Directory
(
'inferencer-fluid-cpu'
)
Directory
(
'serving'
)
Directory
(
'
demo-
serving'
)
Directory
(
'sdk-cpp'
)
Directory
(
'demo-client'
)
BCLOUD.client
浏览文件 @
53bba10e
...
...
@@ -15,3 +15,4 @@ CONFIGS('baidu/third-party/glog@v0.3.x@git_branch')
Directory
(
'pdcodegen'
)
Directory
(
'configure'
)
Directory
(
'sdk-cpp'
)
Directory
(
'demo-client'
)
README.md
浏览文件 @
53bba10e
...
...
@@ -42,10 +42,10 @@ Paddle serving框架为策略工程师提供以下三层面的功能性扩展:
| |-- src
| `-- tests
|-- demo-client # Client端示例;包括如文本分类、图像分类等任务的例子
| |-- conf # conf目录
| |-- data # data目录
| |-- conf #
Client示例的
conf目录
| |-- data #
Client示例的
data目录
| | \-- images
| `-- src # src目录
| `-- src #
Client示例的
src目录
|-- demo-serving # Serving示例。该目录下代码与libpdserving.a联编,产出一个可执行的serving二进制
| |-- conf # Serving示例的Conf目录
| |-- data # Serving示例的data目录
...
...
demo-client/BCLOUD
0 → 100644
浏览文件 @
53bba10e
#edit-mode: -*- python -*-
#coding:utf-8
WORKROOT
(
'../../../../'
)
#Preprocessor flags.
CPPFLAGS
(
r
'-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__const__= -Dtypeof=__typeof__ -DUSE_PTHREAD'
)
#CPPFLAGS(r'-DVERSION=\"%s\"' % SVN_LAST_CHANGED_REV())
#C++ flags.
CXXFLAGS
(
'-g -O2 -pipe -W -Wall -fPIC -fno-omit-frame-pointer -Wno-deprecated -Wno-unused-parameter -Wno-unused-variable -Wno-unused-local-typedefs -Wno-sign-compare -std=c++11'
)
#link flags
LDFLAGS
(
'-lpthread -lcrypto -lrt -lssl -ldl -lz -std=c++11'
)
ImportConfigsFrom
(
'..'
)
INCPATHS
(
'$INC'
)
INCPATHS
(
'$INC/sdk-cpp'
)
INCPATHS
(
'$INC/sdk-cpp/include'
)
INCPATHS
(
'$OUT_ROOT/third-64/protobuf/output/include'
)
LIBS
(
'$OUT/lib/libpdconfigure.a'
)
CONFIGS
(
'baidu/base/baidu-rpc@ci-base'
)
CONFIGS
(
'baidu/third-party/gflags@v2.0.0@git_branch'
)
CONFIGS
(
'baidu/third-party/glog@v0.3.x@git_branch'
)
CONFIGS
(
'baidu/third-party/opencv@master@git_branch'
)
# DELETE_AUTO_LIBS('$OUT_ROOT/third-64/glog/output/lib/libglog.a')
DELETE_AUTO_LIBS
(
'$OUT_ROOT/third-64/gflags/output/lib/libgflags.a'
)
DELETE_AUTO_LIBS
(
'$OUT_ROOT/third-64/gflags/output/lib/libgflags_nothreads.a'
)
PROTOFLAGS
(
'--plugin=protoc-gen-pdcodegen=../pdcodegen/plugin/pdcodegen'
,
'--pdcodegen_out proto --proto_path=.'
,
'--proto_path=../predictor/proto'
)
HEADERS
(
GLOB_GEN_SRCS
(
'../configure/proto/sdk_configure.pb.h'
),
'$INC/sdk-cpp'
)
HEADERS
(
GLOB_GEN_SRCS
(
'../predictor/proto/builtin_format.pb.h'
),
'$INC/sdk-cpp'
)
HEADERS
(
GLOB_GEN_SRCS
(
'../predictor/proto/pds_option.pb.h'
),
'$INC/sdk-cpp'
)
HEADERS
(
GLOB_GEN_SRCS
(
'proto/*.pb.h'
),
'$INC/sdk-cpp'
)
HEADERS
(
'include/*.h'
,
'$INC/sdk-cpp/include'
)
HEADERS
(
'include/*.hpp'
,
'$INC/sdk-cpp/include'
)
# Application
#bin
Application
(
'ximage'
,
Sources
(
'src/ximage.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'echo'
,
Sources
(
'src/echo.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'dense_format'
,
Sources
(
'src/dense_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'sparse_format'
,
Sources
(
'src/sparse_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'int64tensor_format'
,
Sources
(
'src/int64tensor_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'text_classification'
,
Sources
(
'src/text_classification.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'text_classification_press'
,
Sources
(
'src/text_classification_press.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
OUTPUT
(
'conf'
,
'$OUT/demo/client'
)
OUTPUT
(
'data'
,
'$OUT/demo/client'
)
demo-serving/BCLOUD
浏览文件 @
53bba10e
...
...
@@ -46,8 +46,7 @@ PROTOFLAGS(
'--pdcodegen_out proto --proto_path=.'
,
'--proto_path=../predictor/proto'
)
HEADERS
(
GLOB_GEN_SRCS
(
'../configure/proto/server_configure.pb.h'
),
'$INC/serving'
)
HEADERS
(
GLOB_GEN_SRCS
(
'proto/*.pb.h'
),
'$INC/serving'
)
HEADERS
(
GLOB_GEN_SRCS
(
'proto/*.pb.h'
),
'$INC/demo-serving'
)
# Application
Application
(
'serving'
,
Sources
(
GLOB
(
' '
.
join
(
cpp_source_dirs
))),
WholeArchives
(
'$OUT/lib/libinferencer-fluid-cpu.a'
))
...
...
sdk-cpp/BCLOUD
浏览文件 @
53bba10e
...
...
@@ -49,16 +49,3 @@ user_sources += ' ../predictor/proto/builtin_format.proto ../predictor/proto/pds
# .a
StaticLibrary
(
'pdsdk-cpp'
,
Sources
(
user_sources
))
# Application
#bin
Application
(
'ximage'
,
Sources
(
'demo/ximage.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'echo'
,
Sources
(
'demo/echo.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'dense_format'
,
Sources
(
'demo/dense_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'sparse_format'
,
Sources
(
'demo/sparse_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'int64tensor_format'
,
Sources
(
'demo/int64tensor_format.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'text_classification'
,
Sources
(
'demo/text_classification.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
Application
(
'text_classification_press'
,
Sources
(
'demo/text_classification_press.cpp'
),
WholeArchives
(
'$OUT/lib/libpdsdk-cpp.a'
))
OUTPUT
(
'conf'
,
'$OUT/demo/client'
)
OUTPUT
(
'data'
,
'$OUT/demo/client'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录