def push_deconv_tasks(self, lamb=2e-2, num_iters=10): for block, blocknum in zip(self.blocks, range(len(self.blocks))): task = decTask.decTask(self.name, block[0], blocknum, lamb=lamb, num_iters=num_iters) self.tq.postTask(task, self.name)
def fake_push_deconv(self, lamb = 2e-2, num_iters = 10): self.results = [None for b in self.blocks] #decTask.decObj = self.d4 #decTask.queueID = self.name for block, blocknum in zip(self.blocks, range(len(self.blocks))): task = decTask.decTask(self.name, block[0], blocknum, lamb=lamb, num_iters=num_iters) t = task(taskQueue=self.tq) self.results[t.blocknum] = t.results
def fake_push_deconv(self, lamb=2e-2, num_iters=10): self.results = [None for b in self.blocks] #decTask.decObj = self.d4 #decTask.queueID = self.name for block, blocknum in zip(self.blocks, range(len(self.blocks))): task = decTask.decTask(self.name, block[0], blocknum, lamb=lamb, num_iters=num_iters) t = task(taskQueue=self.tq) self.results[t.blocknum] = t.results
def push_deconv_tasks(self, lamb = 2e-2, num_iters = 10): for block, blocknum in zip(self.blocks, range(len(self.blocks))): task = decTask.decTask(self.name, block[0], blocknum, lamb=lamb, num_iters=num_iters) self.tq.postTask(task, self.name)