parameters: (self)
return_statement: return bprop
docstring: Grad definition for `Neg` operation.
docstring_summary: Grad definition for `Neg` operation.
docstring_tokens: Grad definition for Neg operation .
function: def get_bprop_neg(self):
      """Grad definition for `Neg` operation."""
      neg_grad = P.Neg()
  
      def bprop(x, out, dout):
          dx = neg_grad(dout)
          return (dx,)
  
      return bprop
function_tokens: def get_bprop_neg ( self ) : neg_grad = P . Neg ( ) def bprop ( x , out , dout ) : dx = neg_grad ( dout ) return ( dx , ) return bprop