class_docstr: Initializes with a constant.
docstr: Constructs a Constant initializer.
  
  Args:
    constant: Constant to initialize with.
docstr_tok: ["Constructs","a","Constant","initializer",".","Args",":","constant",":","Constant","to","initialize","with","."]
code: def __init__(
      self, constant: Union[float, int, complex, np.ndarray, jax.Array]
  ):
      """Constructs a Constant initializer.
  
      Args:
        constant: Constant to initialize with.
      """
      self.constant = constant
  
imports: from collections.abc import Sequence
  from typing import Any, Union
  from haiku._src import base
  from haiku._src.typing import Initializer
  import jax
  import jax.numpy
  import numpy
label_desc: Use image node_id 1 to create a new Constant object from inherited base classes: hk.initializers with example: obj = Constant(constant)