#NEWLINE# def grad( self , inp , grads ) : #NEWLINE# #INDENT# ( img , ws , stride , pad ) = inp #NEWLINE# ( grad , ) = grads #NEWLINE# grad = gpu_contiguous ( grad ) #NEWLINE# out = self ( img , ws , stride , pad ) #NEWLINE# g_out = GpuDnnPoolGrad ( mode = self . mode ) ( img , out , grad , ws , stride , pad ) #NEWLINE# return ( g_out , theano . gradient . DisconnectedType ( ) ( ) , theano . gradient . DisconnectedType ( ) ( ) , theano . gradient . DisconnectedType ( ) ( ) )