docstr: Constant initializer, will fill in all values with the value of
  `constant`.
  
  Parameters
  ----------
  constant
      Constant value for initialization.
docstr_tok: ["Constant","initializer",",","will","fill","in","all","values","with","the","value","of","`","constant","`",".","Parameters","--","--","--","--","--","constant","Constant","value","for","initialization","."]
code: def __init__(self, constant: float):
      """Constant initializer, will fill in all values with the value of
      `constant`.
  
      Parameters
      ----------
      constant
          Constant value for initialization.
      """
      self._constant = constant
  
imports: from typing import Tuple, Union, Optional
  import abc
  import ivy
  from ivy.functional.ivy.gradients import _variable
label_desc: Use image node_id 1 to create a new Constant object from inherited base classes: Initializer with example: obj = Constant(constant)