#NEWLINE# def grad( self , inp , grads ) : #NEWLINE# #INDENT# ( x , ) = inp #NEWLINE# ( g_sm , ) = grads #NEWLINE# sm = self . make_node ( x ) . outputs [ 0 ] #NEWLINE# return [ GpuDnnSoftmaxGrad ( self . tensor_format , self . algo , self . mode ) ( g_sm , sm ) ]