parameters: (self)
return_statement: return bprop
docstring: Grad definition for `TruncateMod` operation.
docstring_summary: Grad definition for `TruncateMod` operation.
docstring_tokens: Grad definition for TruncateMod operation .
function: def get_bprop_truncate_mod(self):
      """Grad definition for `TruncateMod` operation."""
      div_op = P.TruncateDiv()
  
      def bprop(x, y, out, dout):
          bc_x = dout
          bc_y = -dout * div_op(x, y)
          return binop_grad_common(x, y, bc_x, bc_y)
  
      return bprop
function_tokens: def get_bprop_truncate_mod ( self ) : div_op = P . TruncateDiv ( ) def bprop ( x , y , out , dout ) : bc_x = dout bc_y = - dout * div_op ( x , y ) return binop_grad_common ( x , y , bc_x , bc_y ) return bprop