From 6a9c217c496efb56991b1b5c48b8e4b24c1ec00c Mon Sep 17 00:00:00 2001 From: MRXLT Date: Sat, 4 Apr 2020 06:43:36 +0000 Subject: [PATCH] remove cube demo --- README.md | 8 -------- README_CN.md | 8 -------- python/examples/imdb/benchmark_batch.py | 5 ++++- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index f20012d0..d122ea2e 100644 --- a/README.md +++ b/README.md @@ -227,14 +227,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 | None(Get model by [local_train.py](python/examples/criteo_ctr_with_cube/local_train.py)) | -| 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 | -

Document

### New to Paddle Serving diff --git a/README_CN.md b/README_CN.md index f5ca91ef..4333e993 100644 --- a/README_CN.md +++ b/README_CN.md @@ -233,14 +233,6 @@ curl -H "Content-Type:application/json" -X POST -d '{"url": "https://paddle-serv -| Key | Value | -| :----------------- | :----------------------------------------------------------- | -| 模型名 | DNN-CTR(with cube) | -| 下载链接 | None(Get model by [local_train.py](python/examples/criteo_ctr_with_cube/local_train.py)) | -| 客户端/服务端代码 | https://github.com/PaddlePaddle/Serving/tree/develop/python/examples/criteo_ctr_with_cube | -| 介绍 | 从项目的特征向量中获得点击概率 | - -

文档

### 新手教程 diff --git a/python/examples/imdb/benchmark_batch.py b/python/examples/imdb/benchmark_batch.py index d36704a7..99b8ec56 100644 --- a/python/examples/imdb/benchmark_batch.py +++ b/python/examples/imdb/benchmark_batch.py @@ -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)) -- GitLab