def setUp(self):
        np.random.seed(234)
        assert self.imshp[0] == self.imshp[1]
        fModulesR = (self.ksize + 1 - self.imshp[0]) // self.subsample_stride
        #fModulesR += 1 # XXX GpuImgActs crashes w/o this??
        fModulesC = fModulesR
        self.fshape = (fModulesR, fModulesC, self.channels // self.ngroups,
                self.ksize, self.ksize, self.ngroups, self.nkern_per_group)
        self.ishape = (self.ngroups, self.channels // self.ngroups,
                self.imshp[0], self.imshp[1], self.bsize)
        self.hshape = (self.ngroups, self.nkern_per_group, fModulesR, fModulesC,
                self.bsize)

        filters = theano.shared(self.rand(self.fshape))

        self.A = LocalDot(filters, self.imshp[0], self.imshp[1],
                subsample=(self.subsample_stride, self.subsample_stride))

        self.xlval = self.rand((self.hshape[-1],) + self.hshape[:-1])
        self.xrval = self.rand(self.ishape)

        self.xl = theano.shared(self.xlval)
        self.xr = theano.shared(self.xrval)

    # N.B. the tests themselves come from SymbolicSelfTestMixin
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/packaged_dependencies/theano_linear/unshared_conv/test_localdot.py/TestLocalDot32x32.setUp/swapped operands of `-`