python与Tensorflow

Tensorflow——tf.layers.dense用法

2018-10-30  本文已影响677人  SpareNoEfforts

dense:全连接层

相当于添加一个层,即初学的add_layer()函数


tf.layers.dense(
    inputs,
    units,
    activation=None,
    use_bias=True,
    kernel_initializer=None,
    bias_initializer=tf.zeros_initializer(),
    kernel_regularizer=None,
    bias_regularizer=None,
    activity_regularizer=None,
    kernel_constraint=None,
    bias_constraint=None,
    trainable=True,
    name=None,
    reuse=None
)
上一篇下一篇

猜你喜欢

热点阅读