docstr: ivy.Array instance method variant of ivy.stop_gradient. This method
  simply wraps the function, and so the docstring for ivy.stop_gradient
  also applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      Array for which to stop the gradient.
  preserve_type
      Whether to preserve gradient computation on ivy.Array instances. Default is
      True.
  out
      optional output array, for writing the result to. It must have a
      shape that the inputs broadcast to.
  
  Returns
  -------
  ret
      The same array x, but with no gradient information.
  
  Examples
  --------
  >>> x = ivy.array([1., 2., 3.])
  >>> y = x.stop_gradient(preserve_type=True)
  >>> print(y)
  ivy.array([1., 2., 3.])
code: def stop_gradient(
      self: ivy.Array,
      /,
      *,
      preserve_type: bool = True,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.stop_gradient. This method
      simply wraps the function, and so the docstring for ivy.stop_gradient
      also applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          Array for which to stop the gradient.
      preserve_type
          Whether to preserve gradient computation on ivy.Array instances. Default is
          True.
      out
          optional output array, for writing the result to. It must have a
          shape that the inputs broadcast to.
  
      Returns
      -------
      ret
          The same array x, but with no gradient information.
  
      Examples
      --------
      >>> x = ivy.array([1., 2., 3.])
      >>> y = x.stop_gradient(preserve_type=True)
      >>> print(y)
      ivy.array([1., 2., 3.])
      """
      return ivy.stop_gradient(
          self, preserve_type=preserve_type, out=out
      )
  
file_path: ivy/ivy/data_classes/array/gradients.py
imports: import abc
  from typing import Union, Optional
  import ivy
label_desc: Use image node_id 1 for calling the _ArrayWithGradients obj's underlying member method code with example usage: obj.stop_gradient() and returns: ivy