1
我目前在tensorflow中建立一个CNN,我正在使用He正常权重初始化初始化我的权重矩阵。但是,我不确定我应该如何初始化我的偏见值。我将ReLU用作每个卷积层之间的激活函数。是否有标准的方法来初始化偏差值?神经网络的初始偏差值
# Define approximate xavier weight initialization (with RelU correction described by He)
def xavier_over_two(shape):
std = np.sqrt(shape[0] * shape[1] * shape[2])
return tf.random_normal(shape, stddev=std)
def bias_init(shape):
return #???
谢谢正是我一直在寻找! –