(inputs, units, name=None)
return fluid.layers.fc(inputs,
                           units,
                           param_attr=param_attr)
fully connected
fully connected
fully connected
def fully_connected(inputs, units, name=None):
    """
        fully connected
    """
    n = inputs.shape[1]
    param_attr = fluid.param_attr.ParamAttr(
        initializer=fluid.initializer.TruncatedNormal(
            0.0, scale=np.sqrt(2.0 / n)),
        regularizer=fluid.regularizer.L2Decay(FLAGS.weight_decay))

    return fluid.layers.fc(inputs,
                           units,
                           param_attr=param_attr)
def fully_connected ( inputs , units , name = None ) : n = inputs . shape [ 1 ] param_attr = fluid . param_attr . ParamAttr ( initializer = fluid . initializer . TruncatedNormal ( 0.0 , scale = np . sqrt ( 2.0 / n ) ) , regularizer = fluid . regularizer . L2Decay ( FLAGS . weight_decay ) ) return fluid . layers . fc ( inputs , units , param_attr = param_attr )