コード例 #1
0
 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)
コード例 #2
0
ファイル: tq_block_dec.py プロジェクト: RuralCat/CLipPYME
    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
コード例 #3
0
    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
コード例 #4
0
ファイル: tq_block_dec.py プロジェクト: RuralCat/CLipPYME
 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)