def __init__(self, units, activation=None, use_bias=True, weight_initializer=None, bias_initializer='zeros', in_units=0, **kwargs):
    super(Dense, self).__init__(**kwargs)
    with self.name_scope():
        self._units = units
        self._in_units = in_units
        self.weight = self.params.get('weight', shape=(units, in_units), init=weight_initializer, allow_deferred_init=True)
        if use_bias:
            self.bias = self.params.get('bias', shape=(units,), init=bias_initializer, allow_deferred_init=True)
        else:
            self.bias = None
        if (activation is not None):
            self.act = Activation(activation, prefix=(activation + '_'))
        else:
            self.act = None
def __init__(self, units, activation=None, use_bias=True, weight_initializer=None, bias_initializer='zeros', in_units=0, **kwargs):
    super(Dense, self).__init__(**kwargs)
    with self.name_scope():
        self._units = units
        self._in_units = in_units
        self.weight = self.params.get('weight', shape=(units, in_units), init=weight_initializer, allow_deferred_init=True)
        if use_bias:
            self.bias = self.params.get('bias', shape=(units,), init=bias_initializer, allow_deferred_init=True)
        else:
            self.bias = None
        if (activation is not None):
            self.act = Activation(activation, prefix=(activation + '_'))
        else:
            self.act = None