

def grad(self, inp, grads):
    '\n        .. todo::\n\n            WRITEME\n        '
    (x, seed) = inp
    (gz,) = grads
    gz = gpu_contiguous(gz)
    maxout = self(x)
    return [MaxPoolGrad(self.ds, self.stride, self.start)(x, maxout, gz), zeros_like(seed)]

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/sandbox/cuda_convnet/stochastic_pool.py StochasticMaxPool.grad/original