def __init__(self, **kwargs):
    allowed_kwargs = {'name', 'logging'}
    for kwarg in kwargs.keys():
        assert (kwarg in allowed_kwargs), ('Invalid keyword argument: ' + kwarg)
    name = kwargs.get('name')
    if (not name):
        layer = self.__class__.__name__.lower()
        name = ((layer + '_') + str(get_layer_uid(layer)))
    self.name = name
    self.vars = {}
    logging = kwargs.get('logging', False)
    self.logging = logging
    self.sparse_inputs = False
def __init__(self, **kwargs):
    allowed_kwargs = {'name', 'logging'}
    for kwarg in kwargs.keys():
        assert (kwarg in allowed_kwargs), ('Invalid keyword argument: ' + kwarg)
    name = kwargs.get('name')
    if (not name):
        layer = self.__class__.__name__.lower()
        name = ((layer + '_') + str(get_layer_uid(layer)))
    self.name = name
    self.vars = {}
    logging = kwargs.get('logging', False)
    self.logging = logging
    self.sparse_inputs = False