

def get_config(self):
    config = {
        'init': self.init.__name__,
        'transform_bias': self.transform_bias,
        'activation': self.activation.__name__,
        'W_regularizer': (self.W_regularizer.get_config() if self.W_regularizer else None),
        'b_regularizer': (self.b_regularizer.get_config() if self.b_regularizer else None),
        'activity_regularizer': (self.activity_regularizer.get_config() if self.activity_regularizer else None),
        'W_constraint': (self.W_constraint.get_config() if self.W_constraint else None),
        'b_constraint': (self.b_constraint.get_config() if self.b_constraint else None),
        'bias': self.bias,
        'input_dim': self.input_dim,
    }
    base_config = super(Highway, self).get_config()
    return dict((list(base_config.items()) + list(config.items())))

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py Highway.get_config/original