From 96b39b10dd5fa9f6dea7be842cc7c3c87eed7682 Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 16 Apr 2020 20:59:24 +0800 Subject: [PATCH] update use memory address instead of timestamp --- python/paddle_serving_client/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/paddle_serving_client/__init__.py b/python/paddle_serving_client/__init__.py index e0adc6e3..db1083a9 100644 --- a/python/paddle_serving_client/__init__.py +++ b/python/paddle_serving_client/__init__.py @@ -18,7 +18,6 @@ import os from .proto import sdk_configure_pb2 as sdk from .proto import general_model_config_pb2 as m_config import google.protobuf.text_format -import time import sys int_type = 0 @@ -156,8 +155,7 @@ class Client(object): ) else: if self.predictor_sdk_ is None: - timestamp = time.time() - self.add_variant('default_tag_{}'.format(timestamp), endpoints, + self.add_variant('default_tag_{}'.format(id(self)), endpoints, 100) else: print( -- GitLab