📜  tf.contrib.layers.xavier_initializer() tf2 - Python 代码示例

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

代码示例1
shape = (3,3)
initializer = tf.initializers.GlorotUniform()
var = tf.Variable(initializer(shape=shape))