From e6f89bd85e1bf7054a2d6a55d470efea8b15c966 Mon Sep 17 00:00:00 2001 From: "shaohua.zhang" Date: Thu, 26 Nov 2020 21:36:22 +0800 Subject: [PATCH] fix some args positon (#1228) fix server and client var --- deploy/pdserving/inference_to_serving.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/pdserving/inference_to_serving.py b/deploy/pdserving/inference_to_serving.py index 5b895f07..76efca14 100644 --- a/deploy/pdserving/inference_to_serving.py +++ b/deploy/pdserving/inference_to_serving.py @@ -24,9 +24,9 @@ def parse_args(): args = parse_args() inference_model_dir = args.model_dir -serving_client_dir = os.path.join(args.model_dir, args.server_dir) -serving_server_dir = os.path.join(args.model_dir, args.client_dir) +serving_server_dir = os.path.join(args.model_dir, args.server_dir) +serving_client_dir = os.path.join(args.model_dir, args.client_dir) feed_var_names, fetch_var_names = inference_model_to_serving( - inference_model_dir, serving_client_dir, serving_server_dir, model_filename="model", params_filename="params") + inference_model_dir, serving_server_dir, serving_client_dir, model_filename="model", params_filename="params") -print("success!") \ No newline at end of file +print("success!") -- GitLab