def function(self, name=None):
        inputs = tensor.matrix()
        if self.cpu_only:
            return theano.function([inputs], self(inputs), name=name,
                                   mode=get_default_mode().excluding('gpu'))
        else:
            return theano.function([inputs], self(inputs), name=name)
When the L{Deferred} referred to by L{DeferredContext.addActionFinish}
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/blocks.py/Block.function--crossover with--dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_twisted.py/DeferredContextTests.test_addActionFinishSuccess