class_docstr: The Glorot uniform initializer, also called Xavier uniform initializer.
  
  Draws samples from a uniform distribution within `[-limit, limit]`, where
  `limit = sqrt(6 / (fan_in + fan_out))` (`fan_in` is the number of input
  units in the weight tensor and `fan_out` is the number of output units).
  
  Examples:
  
  >>> # Standalone usage:
  >>> initializer = GlorotUniform()
  >>> values = initializer(shape=(2, 2))
  
  >>> # Usage in a Keras layer:
  >>> initializer = GlorotUniform()
  >>> layer = Dense(3, kernel_initializer=initializer)
  
  Args:
      seed: A Python integer or instance of
          `keras.backend.SeedGenerator`.
          Used to make the behavior of the initializer
          deterministic. Note that an initializer seeded with an integer
          or `None` (unseeded) will produce the same random values
          across multiple calls. To get different random values
          across multiple calls, use as seed an instance
          of `keras.backend.SeedGenerator`.
  
  Reference:
  
  - [Glorot et al., 2010](http://proceedings.mlr.press/v9/glorot10a.html)
class_docstr_tok: ["The","Glorot","uniform","initializer",",","also","called","Xavier","uniform","initializer",".","Draws","samples","from","a","uniform","distribution","within","`","[","-limit",",","limit","]","`",",","where","`","limit","=","sqrt","(","6","\/","(","fan_in","+","fan_out",")",")","`","(","`","fan_in","`","is","the","number","of","input","units","in","the","weight","tensor","and","`","fan_out","`","is","the","number","of","output","units",")",".","Examples",":",">",">",">","#","Standalone","usage",":",">",">",">","initializer","=","GlorotUniform","(",")",">",">",">","values","=","initializer","(","shape=","(","2",",","2",")",")",">",">",">","#","Usage","in","a","Keras","layer",":",">",">",">","initializer","=","GlorotUniform","(",")",">",">",">","layer","=","Dense","(","3",",","kernel_initializer=initializer",")","Args",":","seed",":","A","Python","integer","or","instance","of","`","keras.backend.SeedGenerator","`",".","Used","to","make","the","behavior","of","the","initializer","deterministic",".","Note","that","an","initializer","seeded","with","an","integer","or","`","None","`","(","unseeded",")","will","produce","the","same","random","values","across","multiple","calls",".","To","get","different","random","values","across","multiple","calls",",","use","as","seed","an","instance","of","`","keras.backend.SeedGenerator","`",".","Reference",":","-","[","Glorot","et","al.",",","2010","]","(","http",":","\/\/proceedings.mlr.press\/v9\/glorot10a.html",")"]
code: def __init__(self, seed=None):
      super().__init__(
          scale=1.0, mode="fan_avg", distribution="uniform", seed=seed
      )
  
imports: import math
  from keras import ops
  from keras.api_export import keras_export
  from keras.backend import random
  from keras.initializers.initializer import Initializer
  from keras.saving import serialization_lib
label_desc: Use image node_id 1 to create a new GlorotUniform object from inherited base classes: VarianceScaling with example: obj = GlorotUniform(seed)