class_docstr: Initializer that generates tensors with constant values.
  
  Only scalar values are allowed.
  The constant value provided must be convertible to the dtype requested
  when calling the initializer.
  
  Examples:
  
  >>> # Standalone usage:
  >>> initializer = Constant(10.)
  >>> values = initializer(shape=(2, 2))
  
  >>> # Usage in a Keras layer:
  >>> initializer = Constant(10.)
  >>> layer = Dense(3, kernel_initializer=initializer)
  
  Args:
      value: A Python scalar.
class_docstr_tok: ["Initializer","that","generates","tensors","with","constant","values",".","Only","scalar","values","are","allowed",".","The","constant","value","provided","must","be","convertible","to","the","dtype","requested","when","calling","the","initializer",".","Examples",":",">",">",">","#","Standalone","usage",":",">",">",">","initializer","=","Constant","(","10",".",")",">",">",">","values","=","initializer","(","shape=","(","2",",","2",")",")",">",">",">","#","Usage","in","a","Keras","layer",":",">",">",">","initializer","=","Constant","(","10",".",")",">",">",">","layer","=","Dense","(","3",",","kernel_initializer=initializer",")","Args",":","value",":","A","Python","scalar","."]
code: def get_config(self):
      return {
          "value": serialization_lib.serialize_keras_object(self.value)
      }
  
imports: from keras import ops
  from keras.api_export import keras_export
  from keras.backend import standardize_dtype
  from keras.initializers.initializer import Initializer
  from keras.saving import serialization_lib
label_desc: Use image node_id 3 for calling the Constant obj's underlying member method code with example usage: obj.get_config() and returns: dict