60116bb08c885a5fa911331c430384dd52213029,python/paddle_edl/distill/distill_reader.py,DistillReader,_start_predict_worker,#DistillReader#,1051
Before Change
def _start_predict_worker(self):
process = []
for i in range(self._require_num):
stop_flag = mps.Event()
worker = mps.Process(target=self._predict_worker)
worker.daemon = True
worker.start()
process.append(worker)
After Change
def _start_predict_worker(self):
process = []
for i in range(self._require_num):
worker = mps.Process(
target=distill_worker.predict_worker,
args=(
self._predict_server_queue,
self._predict_server_result_queue,
self._working_predict_count,
self._reader_out_queue,
self._predict_out_queue,
self._feeds,
self._fetchs,
self._serving_conf_file,
self._predict_stop_events,
self._predict_lock,
self._predict_finished_task,
self._predict_cond, ))
worker.daemon = True
worker.start()
process.append(worker)
return process
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: PaddlePaddle/edl
Commit Name: 60116bb08c885a5fa911331c430384dd52213029
Time: 2020-05-25
Author: wangxi16@baidu.com
File Name: python/paddle_edl/distill/distill_reader.py
Class Name: DistillReader
Method Name: _start_predict_worker
Project Name: tyarkoni/pliers
Commit Name: b3cf6fd0c65394a97c2dbcff6dd835de5006e10f
Time: 2016-10-12
Author: tyarkoni@gmail.com
File Name: featurex/extractors/audio.py
Class Name: STFTExtractor
Method Name: _extract
Project Name: tensorflow/tensorboard
Commit Name: 17ba11f67dae7b1fba8d7fb6de65472d328847ff
Time: 2016-04-01
Author: danmane@gmail.com
File Name: scripts/generate_testdata.py
Class Name:
Method Name: WriteImageSeries
Project Name: hanxiao/bert-as-service
Commit Name: 59ef8212c3cec8ebcb9602bd18836c4509891906
Time: 2018-11-12
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: __init__