mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-24 08:02:45 +01:00
predictor: mp.Value must come from spawn context, too
This commit is contained in:
parent
9f127a0783
commit
bb468bf68f
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class Predictor(mp.context.SpawnProcess):
|
|||
self.loglevel = logger.level
|
||||
self.model_zoo = model_zoo
|
||||
ctxt = mp.get_context('spawn')
|
||||
self.jobid = mp.Value('i', 0)
|
||||
self.jobid = ctxt.Value('i', 0)
|
||||
self.taskq = ctxt.Queue(maxsize=QSIZE)
|
||||
self.resultq = ctxt.Queue(maxsize=QSIZE)
|
||||
self.logq = ctxt.Queue(maxsize=QSIZE * 100)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue