docstr: ivy.Array instance method variant of ivy.leaky_relu. This method
  simply wraps the function, and so the docstring for ivy.leaky_relu also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  alpha
      the slope of the negative section.
  complex_mode
      optional specifier for how to handle complex data types. See
      ``ivy.func_wrapper.handle_complex_input`` for more detail.
  out
      optional output array, for writing the result to. It must have a shape
      that the inputs broadcast to.
  
  Returns
  -------
  ret
      an array with the leaky relu activation function applied element-wise.
  
  Examples
  --------
  >>> x = ivy.array([0.39, -0.85])
  >>> y = x.leaky_relu()
  >>> print(y)
  ivy.array([ 0.39, -0.17])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.leaky_relu",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.leaky_relu","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","alpha","the","slope","of","the","negative","section",".","complex_mode","optional","specifier","for","how","to","handle","complex","data","types",".","See","``","ivy.func_wrapper.handle_complex_input","``","for","more","detail",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","an","array","with","the","leaky","relu","activation","function","applied","element-wise",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","0.39",",","-0.85","]",")",">",">",">","y","=","x.leaky_relu","(",")",">",">",">","print","(","y",")","ivy.array","(","[","0.39",",","-0.17","]",")"]
code: def leaky_relu(
      self: ivy.Array,
      /,
      *,
      alpha: float = 0.2,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.leaky_relu. This method
      simply wraps the function, and so the docstring for ivy.leaky_relu also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      alpha
          the slope of the negative section.
      complex_mode
          optional specifier for how to handle complex data types. See
          ``ivy.func_wrapper.handle_complex_input`` for more detail.
      out
          optional output array, for writing the result to. It must have a shape
          that the inputs broadcast to.
  
      Returns
      -------
      ret
          an array with the leaky relu activation function applied element-wise.
  
      Examples
      --------
      >>> x = ivy.array([0.39, -0.85])
      >>> y = x.leaky_relu()
      >>> print(y)
      ivy.array([ 0.39, -0.17])
      """
      return ivy.leaky_relu(
          self._data, alpha=alpha, complex_mode=complex_mode, out=out
      )
  
file_path: ivy/ivy/data_classes/array/activations.py
imports: import abc
  from typing import Optional, Union, Literal
  import ivy
label_desc: Use image node_id 2 for calling the _ArrayWithActivations obj's underlying member method code with example usage: obj.leaky_relu() and returns: ivy