tensorflow全连接层降维
tf.layers.dense(
inputs = inputs,##输入##
units = units,##输出的维度##
activation = activation,
use_bias = use_bias,##True or False##
trainable = self.is_train,##True or False##
kernel_initializer = self.fc_kernel_initializer,#tf.random_uniform_initializer(minval = -0.08,maxval = 0.08)##
kernel_regularizer = self.fc_kernel_regularizer,##None或tf.random_uniform_initializer(minval = -0.08,maxval = 0.08)##
activity_regularizer = activity_regularizer,##None或layers.l1_regularizer(scale = 0.0)##
name = name##层名##)