From 8093820a81562b30e7f558ccd6f0e0ace889311f Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 20 Feb 2020 10:00:21 +0800 Subject: [PATCH] add default gpuid --- python/paddle_serving_server_gpu/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle_serving_server_gpu/__init__.py b/python/paddle_serving_server_gpu/__init__.py index dbd974da..be430def 100644 --- a/python/paddle_serving_server_gpu/__init__.py +++ b/python/paddle_serving_server_gpu/__init__.py @@ -88,6 +88,7 @@ class Server(object): self.cur_path = os.getcwd() self.vlog_level = 0 self.use_local_bin = False + self.gpuid = 0 def set_max_concurrency(self, concurrency): self.max_concurrency = concurrency -- GitLab