parameters: (self)
return_statement: return bprop
docstring: Grad definition for `KLDivLoss` operation.
docstring_summary: Grad definition for `KLDivLoss` operation.
docstring_tokens: Grad definition for KLDivLoss operation .
function: def get_bprop_kl_div_loss(self):
      """Grad definition for `KLDivLoss` operation."""
      grad = G.KLDivLossGrad(self.reduction)
  
      def bprop(x, y, out, dout):
          dx, dy = grad(x, y, dout)
          return dx, dy
  
      return bprop
function_tokens: def get_bprop_kl_div_loss ( self ) : grad = G . KLDivLossGrad ( self . reduction ) def bprop ( x , y , out , dout ) : dx , dy = grad ( x , y , dout ) return dx , dy return bprop