📅  最后修改于: 2022-03-11 14:45:14.715000             🧑  作者: Mango
init = tf.initializers.GlorotUniform()
var = tf.Variable(init(shape=shape))
# or a oneliner with a little confusing brackets
var = tf.Variable(tf.initializers.GlorotUniform()(shape=shape))