tf.layers.Dense()用法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Eric_LH/article/details/83791635

tf.layers.Dense函数
Dense类
继承自: Layer

定义在:tensorflow/python/layers/core.py。

密集连接(Densely-connected)层类。
该层实现了操作:outputs = activation(inputs * kernel + bias),其中activation是作为activation参数传递的激活函数(如果不是None),是由层创建的权重矩阵,kernel是由层创建的权重矩阵,并且bias是由层创建的偏差向量(只有use_bias为True时)。

猜你喜欢

转载自blog.csdn.net/Eric_LH/article/details/83791635