initializer = tf.contrib.layers.xavier_initializer() code example
Example: tf.contrib.layers.xavier_initializer() tf2
shape = (3,3)
initializer = tf.initializers.GlorotUniform()
var = tf.Variable(initializer(shape=shape))
shape = (3,3)
initializer = tf.initializers.GlorotUniform()
var = tf.Variable(initializer(shape=shape))