diff --git a/python/paddle_serving_server_gpu/__init__.py b/python/paddle_serving_server_gpu/__init__.py index 3ba6f80ce53bda6c7480c84f7e63e469cc5066e4..8e1cabb998ecb7c0507bff17bc5a6320a445e412 100644 --- a/python/paddle_serving_server_gpu/__init__.py +++ b/python/paddle_serving_server_gpu/__init__.py @@ -234,7 +234,7 @@ class Server(object): def check_port(self, port): with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock: sock.settimeout(2) - result = sock.connect_ex('127.0.0.1', port) + result = sock.connect_ex(('127.0.0.1', port)) if result != 0: return True else: @@ -258,8 +258,7 @@ class Server(object): "-workflow_path {} " \ "-workflow_file {} " \ "-bthread_concurrency {} " \ - "-gpuid {} " \ - "-v {} ".format( + "-gpuid {} ".format( self.bin_path, self.workdir, self.infer_service_fn,