tf get variable initializer

Solutions on MaxInterview for tf get variable initializer by the best coders in the world

showing results for - "tf get variable initializer"
Giulio
01 Aug 2016
1init = tf.initializers.GlorotUniform()
2var = tf.Variable(init(shape=shape))
3# or a oneliner with a little confusing brackets
4var = tf.Variable(tf.initializers.GlorotUniform()(shape=shape))
5