What is the default kernel initializer in tf.layers.conv2d and tf.layers.dense?

前端 未结 4 616
不知归路
不知归路 2020-12-04 11:51

The official Tensorflow API doc claims that the parameter kernel_initializer defaults to None for tf.layers.conv2d and tf.layers

4条回答
  •  隐瞒了意图╮
    2020-12-04 12:21

    2.0 Compatible Answer: Even in Tensorflow 2.0, the Default Kernel Initializer in tf.keras.layers.Conv2D and tf.keras.layers.Dense is glorot_uniform.

    This is specified in the Tensorflow.org Website.

    Link for Conv2D is https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv2D?version=nightly#init

    and the Link for Dense is

    https://www.tensorflow.org/api_docs/python/tf/keras/layers/Dense?version=nightly#init

提交回复
热议问题