有两种较为方便的方法建立全连接层
tf.layers.dense()
tf.contrib.layers.fully_connected()
Reference:
https://blog.csdn.net/LiQingBB/article/details/83449842
https://stackoverflow.com/questions/44912297/are-tf-layers-dense-and-tf-contrib-layers-fully-connected-interchangeable
https://blog.csdn.net/qq_41853758/article/details/82455837
https://www.cnblogs.com/wangduo/p/6773601.html?utm_source=itdadao&utm_medium=referral