Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
a8a4462b
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a8a4462b
编写于
4月 04, 2020
作者:
D
Dong Daxiang
提交者:
GitHub
4月 04, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #402 from MRXLT/0.2.0-fix-gpu-v3
bug fix
上级
4864e248
c8a38e16
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
18 deletion
+13
-18
README.md
README.md
+0
-8
README_CN.md
README_CN.md
+1
-9
python/examples/imdb/benchmark_batch.py
python/examples/imdb/benchmark_batch.py
+4
-1
python/paddle_serving_server_gpu/__init__.py
python/paddle_serving_server_gpu/__init__.py
+8
-0
未找到文件。
README.md
浏览文件 @
a8a4462b
...
...
@@ -228,14 +228,6 @@ curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serv
| Description | Get click probability from a feature vector of item |
| Key | Value |
| :----------------- | :----------------------------------------------------------- |
| Model Name | DNN-CTR(with cube) |
| URL | https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz |
| Client/Server Code | https://github.com/PaddlePaddle/Serving/tree/develop/python/examples/criteo_ctr_with_cube |
| Description | Get click probability from a feature vector of item |
<h2
align=
"center"
>
Document
</h2>
### New to Paddle Serving
...
...
README_CN.md
浏览文件 @
a8a4462b
...
...
@@ -228,20 +228,12 @@ curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serv
| Key | Value |
| :----------------- | :----------------------------------------------------------- |
| 模型名 | DNN-CTR |
| 下载链接 | https://paddle-serving.bj.bcebos.com/criteo_ctr_example/criteo_ctr_demo_model.tar.gz
|
| 下载链接 | https://paddle-serving.bj.bcebos.com/criteo_ctr_example/criteo_ctr_demo_model.tar.gz |
| 客户端/服务端代码 | https://github.com/PaddlePaddle/Serving/tree/develop/python/examples/criteo_ctr |
| 介绍 | 从项目的特征向量中获得点击概率 |
| Key | Value |
| :----------------- | :----------------------------------------------------------- |
| 模型名 | DNN-CTR(with cube) |
| 下载链接 | https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz |
| 客户端/服务端代码 | https://github.com/PaddlePaddle/Serving/tree/develop/python/examples/criteo_ctr_with_cube |
| 介绍 | 从项目的特征向量中获得点击概率 |
<h2
align=
"center"
>
文档
</h2>
### 新手教程
...
...
python/examples/imdb/benchmark_batch.py
浏览文件 @
a8a4462b
...
...
@@ -61,4 +61,7 @@ def single_func(idx, resource):
multi_thread_runner
=
MultiThreadRunner
()
result
=
multi_thread_runner
.
run
(
single_func
,
args
.
thread
,
{})
print
(
result
)
avg_cost
=
0
for
cost
in
result
[
0
]:
avg_cost
+=
cost
print
(
"total cost of each thread"
.
format
(
avg_cost
/
args
.
thread
))
python/paddle_serving_server_gpu/__init__.py
浏览文件 @
a8a4462b
...
...
@@ -115,6 +115,7 @@ class Server(object):
self
.
reload_interval_s
=
10
self
.
module_path
=
os
.
path
.
dirname
(
paddle_serving_server
.
__file__
)
self
.
cur_path
=
os
.
getcwd
()
self
.
check_cuda
self
.
use_local_bin
=
False
self
.
gpuid
=
0
...
...
@@ -141,6 +142,13 @@ class Server(object):
self
.
use_local_bin
=
True
self
.
bin_path
=
os
.
environ
[
"SERVING_BIN"
]
def
check_cuda
(
self
):
r
=
os
.
system
(
"whereis cuda"
)
if
r
!=
0
:
raise
SystemExit
(
"CUDA not found, please check your environment or use cpu version by
\"
pip install paddle_serving_server
\"
"
)
def
set_gpuid
(
self
,
gpuid
=
0
):
self
.
gpuid
=
gpuid
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录