parameters: (self)
return_statement: return bprop
docstring: Grad definition for `Sub` operation.
docstring_summary: Grad definition for `Sub` operation.
docstring_tokens: Grad definition for Sub operation .
function: def get_bprop_sub(self):
      """Grad definition for `Sub` operation."""
      neg_func = P.Neg()
  
      def bprop(x, y, out, dout):
          return binop_grad_common(x, y, dout, neg_func(dout))
  
      return bprop
function_tokens: def get_bprop_sub ( self ) : neg_func = P . Neg ( ) def bprop ( x , y , out , dout ) : return binop_grad_common ( x , y , dout , neg_func ( dout ) ) return bprop