7dcdaf7091798a01341d7b94de0880f8e535608e,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 = dict(args._asdict()) if isinstance(args, tuple) else vars(args)
self.args_dict.update({
"tensorflow_version": tf.__version__,
"python_version": sys.version,
After 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,
"port_out": args.port_out,
"pooling_layer": args.pooling_layer,
"pooling_strategy": args.pooling_strategy,
"tensorflow_version": tf.__version__,
"python_version": sys.version,
"server_start": str(datetime.now())
}
self.processes = []
self.context = zmq.Context()
// frontend facing client
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 2
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 7dcdaf7091798a01341d7b94de0880f8e535608e
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: __init__
Project Name: OpenMined/PySyft
Commit Name: d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
Time: 2020-10-26
Author: rladhkstn8@gmail.com
File Name: test/torch/tensors/test_additive_shared.py
Class Name:
Method Name: test_mul
Project Name: OpenMined/PySyft
Commit Name: d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
Time: 2020-10-26
Author: rladhkstn8@gmail.com
File Name: benchmarks/frameworks/torch/mpc/scripts/benchmark_ast.py
Class Name:
Method Name: benchmark_share_get
Project Name: OpenMined/PySyft
Commit Name: d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
Time: 2020-10-26
Author: rladhkstn8@gmail.com
File Name: test/torch/tensors/test_additive_shared.py
Class Name:
Method Name: test_share_get
Project Name: asyml/texar
Commit Name: bb033219cbc78a5a0f934c1f0453fe7ace9934bc
Time: 2018-08-21
Author: zhitinghu@gmail.com
File Name: texar/modules/policies/policy_nets.py
Class Name: CategoricalPolicyNet
Method Name: _build
Project Name: OpenMined/PySyft
Commit Name: d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
Time: 2020-10-26
Author: rladhkstn8@gmail.com
File Name: syft/frameworks/torch/tensors/interpreters/native.py
Class Name: TorchTensor
Method Name: encrypt
Project Name: OpenMined/PySyft
Commit Name: d811ef1e91e5e2c84fbbf1edf61e6983380b4d16
Time: 2020-10-26
Author: rladhkstn8@gmail.com
File Name: test/torch/tensors/test_additive_shared.py
Class Name:
Method Name: test_share_inplace_consistency
Project Name: microsoft/nni
Commit Name: 279dbdef5f899afbed53aab337ac2cb605705a96
Time: 2019-08-01
Author: 871886504@qq.com
File Name: tools/nni_annotation/search_space_generator.py
Class Name: SearchSpaceGenerator
Method Name: generate_mutable_layer_search_space