From f320f5eb867d455569ab96476f626825f3b5ca8d Mon Sep 17 00:00:00 2001 From: zhangjun Date: Thu, 22 Apr 2021 16:27:37 +0000 Subject: [PATCH] fix low-precision doc --- doc/LOW_PRECISION_DEPLOYMENT.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/LOW_PRECISION_DEPLOYMENT.md b/doc/LOW_PRECISION_DEPLOYMENT.md index 86d9c5d8..fb3bd208 100644 --- a/doc/LOW_PRECISION_DEPLOYMENT.md +++ b/doc/LOW_PRECISION_DEPLOYMENT.md @@ -27,7 +27,7 @@ from paddle_serving_app.reader import RGB2BGR, Transpose, Div, Normalize client = Client() client.load_client_config( - "resnet_v2_50_imagenet_client/serving_client_conf.prototxt") + "serving_client/serving_client_conf.prototxt") client.connect(["127.0.0.1:9393"]) seq = Sequential([ @@ -37,8 +37,8 @@ seq = Sequential([ image_file = "daisy.jpg" img = seq(image_file) -fetch_map = client.predict(feed={"image": img}, fetch=["score"]) -print(fetch_map["score"].reshape(-1)) +fetch_map = client.predict(feed={"image": img}, fetch=["save_infer_model/scale_0.tmp_0"]) +print(fetch_map["save_infer_model/scale_0.tmp_0"].reshape(-1)) ``` ## Reference -- GitLab