0616f0a6d33e88b566b846e8a175c1a2c844cdc7,service/server.py,BertServer,__init__,#BertServer#Any#,27
Before Change
self.max_batch_size = args.max_batch_size
self.port = args.port
self.args = args
self.args_dict = {
"model_dir": args.model_dir,
"max_seq_len": args.max_seq_len,
"num_worker": args.num_worker,
"max_batch_size": args.max_batch_size,
"port": args.port,
"tensorflow_version": tf.__version__,
"python_version": sys.version,
"server_time": str(datetime.now())
}
self.processes = []
self.context = zmq.Context()
// frontend facing client
After Change
self.max_batch_size = args.max_batch_size
self.port = args.port
self.args = args
self.args_dict = args._asdict() if isinstance(args, namedtuple) else vars(args)
self.args_dict.update({
"tensorflow_version": tf.__version__,
"python_version": sys.version,
"server_start": str(datetime.now())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 0616f0a6d33e88b566b846e8a175c1a2c844cdc7
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: __init__
Project Name: hanxiao/bert-as-service
Commit Name: 1c5a778ff90c6b51196d3ba5ac9d6f80cdc8e479
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertServer
Method Name: __init__
Project Name: hanxiao/bert-as-service
Commit Name: 6ac655533f3faede22d4e44d41a6b6f4b1891ff4
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name: