docstr: ivy.Array instance method variant of ivy.hardtanh. This method
  simply wraps the function, and so the docstring for ivy.hardtanh also
  applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array.
  min_val
      minimum value of the linear region range. Default: -1.
  max_val
      maximum value of the linear region range. Default: 1.
  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 hardtanh activation function applied element-wise
      with custom linear region range.
  
  Examples
  --------
  >>> x = ivy.array([-1., .2, 1.])
  >>> y = x.hardtanh()
  >>> print(y)
  ivy.array([-1., 1., 1.])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.hardtanh",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.hardtanh","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array",".","min_val","minimum","value","of","the","linear","region","range",".","Default",":","-1.","max_val","maximum","value","of","the","linear","region","range",".","Default",":","1.","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","hardtanh","activation","function","applied","element-wise","with","custom","linear","region","range",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","-1.",",",".2",",","1",".","]",")",">",">",">","y","=","x.hardtanh","(",")",">",">",">","print","(","y",")","ivy.array","(","[","-1.",",","1.",",","1",".","]",")"]
code: def hardtanh(
      self: ivy.Array,
      /,
      *,
      max_val: float = 1,
      min_val: float = -1,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.hardtanh. This method
      simply wraps the function, and so the docstring for ivy.hardtanh also
      applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array.
      min_val
          minimum value of the linear region range. Default: -1.
      max_val
          maximum value of the linear region range. Default: 1.
      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 hardtanh activation function applied element-wise
          with custom linear region range.
  
      Examples
      --------
      >>> x = ivy.array([-1., .2, 1.])
      >>> y = x.hardtanh()
      >>> print(y)
      ivy.array([-1., 1., 1.])
      """
      return ivy.hardtanh(
          self._data, min_val=min_val, max_val=max_val, 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 9 for calling the _ArrayWithActivationsExperimental obj's underlying member method code with example usage: obj.hardtanh() and returns: ivy