parameters: (self)
return_statement: return bprop
docstring: Grad definition for `RealDiv` operation.
docstring_summary: Grad definition for `RealDiv` operation.
docstring_tokens: Grad definition for RealDiv operation .
function: def get_bprop_real_div(self):
      """Grad definition for `RealDiv` operation."""
      div_op = P.RealDiv()
      neg = P.Neg()
      mul_op = P.Mul()
  
      def bprop(x, y, out, dout):
          bc_x = div_op(dout, y)
          bc_y = neg(mul_op(bc_x, out))
          return binop_grad_common(x, y, bc_x, bc_y)
  
      return bprop
function_tokens: def get_bprop_real_div ( self ) : div_op = P . RealDiv ( ) neg = P . Neg ( ) mul_op = P . Mul ( ) def bprop ( x , y , out , dout ) : bc_x = div_op ( dout , y ) bc_y = neg ( mul_op ( bc_x , out ) ) return binop_grad_common ( x , y , bc_x , bc_y ) return bprop