未验证 提交 3fd89cd7 编写于 作者: D Dong Daxiang 提交者: GitHub

Merge pull request #456 from barrierye/issue-447

use memory address instead of timestamp
...@@ -18,7 +18,6 @@ import os ...@@ -18,7 +18,6 @@ import os
from .proto import sdk_configure_pb2 as sdk from .proto import sdk_configure_pb2 as sdk
from .proto import general_model_config_pb2 as m_config from .proto import general_model_config_pb2 as m_config
import google.protobuf.text_format import google.protobuf.text_format
import time
import sys import sys
int_type = 0 int_type = 0
...@@ -156,8 +155,7 @@ class Client(object): ...@@ -156,8 +155,7 @@ class Client(object):
) )
else: else:
if self.predictor_sdk_ is None: if self.predictor_sdk_ is None:
timestamp = time.time() self.add_variant('default_tag_{}'.format(id(self)), endpoints,
self.add_variant('default_tag_{}'.format(timestamp), endpoints,
100) 100)
else: else:
print( print(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册