9db1c1d7060f26f3d871d72d5a5690c073d67ade,service/server.py,BertServer,run,#BertServer#,47
Before Change
for j in request:
print(j)
input()
_, reply = request[3:]
finish_jobs[client].append(pickle.loads(reply))
else:
poller.register(self.frontend, zmq.POLLIN)
After Change
free_a_worker(worker)
if client != b"READY" and len(request) > 3:
arr_info, arr_val = jsonapi.loads(request[4]), request[7]
X = np.frombuffer(memoryview(arr_val), dtype=arr_info["dtype"])
finish_jobs[client].append(X.reshape(arr_info["shape"]))
else:
poller.register(self.frontend, zmq.POLLIN)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
Project Name: openai/gym
Commit Name: 42c36737baf0b7f9764bab40662c24e2bf234fd4
Time: 2019-06-28
Author: tristan.deleu@gmail.com
File Name: gym/vector/utils/shared_memory.py
Class Name:
Method Name: write_base_to_shared_memory
Project Name: ray-project/ray
Commit Name: ef498e8aa5cdfe09247d9c9efc7ef636378165c2
Time: 2020-05-15
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/policy.py
Class Name: PowerOfTwoPolicy
Method Name: flush