class_docstr: Initializes parameters as a constant.
class_docstr_tok: ["Initializes","parameters","as","a","constant","."]
docstr: Class constructor.
  
  Args:
      val (float, optional): The value to assign to all tensor elements
docstr_tok: ["Class","constructor",".","Args",":","val","(","float",",","optional",")",":","The","value","to","assign","to","all","tensor","elements"]
code: def __init__(self, val=0.0, name="constantInit"):
      """
      Class constructor.
  
      Args:
          val (float, optional): The value to assign to all tensor elements
      """
      super(Constant, self).__init__(name=name)
      self.val = val
  
imports: import numpy
  from neon import NervanaObject
  from neon.backends.backend import Tensor
label_desc: Use image node_id 1 to create a new Constant object from inherited base classes: Initializer with example: obj = Constant(val, name)