docstr: Apply the rectified linear unit 6 function element-wise.
  
  Parameters
  ----------
  self
      input array
  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 containing the rectified linear unit 6 activation
      of each element in input.
  
  Examples
  --------
  With :class:`ivy.Array` input:
  
  >>> x = ivy.array([-1.,  0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.])
  >>> y = ivy.relu6(x)
  >>> print(y)
  ivy.array([0., 0., 1., 2., 3., 4., 5., 6., 6.])
  
  >>> x = ivy.array([-1.,  0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.])
  >>> y = ivy.zeros(9)
  >>> ivy.relu6(x, out = y)
  >>> print(y)
  ivy.array([0., 0., 1., 2., 3., 4., 5., 6., 6.])
docstr_tok: ["Apply","the","rectified","linear","unit","6","function","element-wise",".","Parameters","--","--","--","--","--","self","input","array","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","containing","the","rectified","linear","unit","6","activation","of","each","element","in","input",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Array","`","input",":",">",">",">","x","=","ivy.array","(","[","-1.",",","0.",",","1.",",","2.",",","3.",",","4.",",","5.",",","6.",",","7",".","]",")",">",">",">","y","=","ivy.relu6","(","x",")",">",">",">","print","(","y",")","ivy.array","(","[","0.",",","0.",",","1.",",","2.",",","3.",",","4.",",","5.",",","6.",",","6",".","]",")",">",">",">","x","=","ivy.array","(","[","-1.",",","0.",",","1.",",","2.",",","3.",",","4.",",","5.",",","6.",",","7",".","]",")",">",">",">","y","=","ivy.zeros","(","9",")",">",">",">","ivy.relu6","(","x",",","out","=","y",")",">",">",">","print","(","y",")","ivy.array","(","[","0.",",","0.",",","1.",",","2.",",","3.",",","4.",",","5.",",","6.",",","6",".","]",")"]
code: def relu6(
      self,
      /,
      *,
      complex_mode: Literal["split", "magnitude", "jax"] = "jax",
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """Apply the rectified linear unit 6 function element-wise.
  
      Parameters
      ----------
      self
          input array
      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 containing the rectified linear unit 6 activation
          of each element in input.
  
      Examples
      --------
      With :class:`ivy.Array` input:
  
      >>> x = ivy.array([-1.,  0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.])
      >>> y = ivy.relu6(x)
      >>> print(y)
      ivy.array([0., 0., 1., 2., 3., 4., 5., 6., 6.])
  
      >>> x = ivy.array([-1.,  0.,  1.,  2.,  3.,  4.,  5.,  6.,  7.])
      >>> y = ivy.zeros(9)
      >>> ivy.relu6(x, out = y)
      >>> print(y)
      ivy.array([0., 0., 1., 2., 3., 4., 5., 6., 6.])
      """
      return ivy.relu6(self._data, complex_mode=complex_mode, out=out)
  
file_path: ivy/ivy/data_classes/array/experimental/activations.py
imports: import abc
  from typing import Optional, Union, Literal
  import ivy
label_desc: Use image node_id 4 for calling the _ArrayWithActivationsExperimental obj's underlying member method code with example usage: obj.relu6() and returns: ivy