📜  tf.get_variable 初始化器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.715000             🧑  作者: Mango

代码示例1
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))