def vecToStack(self,vec):
        start = 0
        sizes = [self.inputDim]+self.layerSizes+[self.outputDim]
        for n,m,i in zip(sizes[:-1],sizes[1:],range(1-len(sizes))):
            self.stack[i] = [gp.garray(np.reshape(np.array(vec[start:start+m*n]),(m,n))),\
                gp.garray(np.reshape(np.array(vec[start+m*n:start+m*(n+1)]),(m,1)))]
            start += m*(n+1)
dataset/ETHPy150Open amaas/stanford-ctc/py-simple-hybrid/nnet.py/NNet.vecToStack/swapped operands of `-`