72ba607dc22f1cf0f071acf90756bfb0c4a2c068,service/server.py,BertServer,run,#BertServer#,47
Before Change
md = jsonapi.loads(res_head[-1])
// receiving actual data
res_body = self.backend.recv_multipart()
worker, _, client = res_body[:3]
free_a_worker(res_body)
_, reply = res_body[3:]
X = np.frombuffer(memoryview(reply), dtype=md["dtype"])
finish_jobs[client].append(X.reshape(md["shape"]))
After Change
free_a_worker(worker)
if client != b"READY" and len(request) > 3:
_, reply = request[3:]
finish_jobs[client].append(pickle.loads(reply))
else:
poller.register(self.frontend, zmq.POLLIN)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 72ba607dc22f1cf0f071acf90756bfb0c4a2c068
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run
Project Name: hanxiao/bert-as-service
Commit Name: 815601e47f97acb3d00633d5ff172403c76bf034
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 90c7356471023c1bbeaabbcfff37eba11940bbe4
Time: 2018-08-13
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name: init_models
Project Name: hanxiao/bert-as-service
Commit Name: 9db1c1d7060f26f3d871d72d5a5690c073d67ade
Time: 2018-11-14
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run