#NEWLINE# def __init__( self , layers = [ ] , name = None ) : #NEWLINE# #INDENT# self . layers = [ ] #NEWLINE# self . model = None #NEWLINE# self . inputs = [ ] #NEWLINE# self . outputs = [ ] #NEWLINE# self . inbound_nodes = [ ] #NEWLINE# self . outbound_nodes = [ ] #NEWLINE# self . built = False #NEWLINE# if ( not name ) : #NEWLINE# #INDENT# prefix = 'sequential_' #NEWLINE# name = ( prefix + str ( K . get_uid ( prefix ) ) ) #NEWLINE# #UNINDENT# self . name = name #NEWLINE# for layer in layers : #NEWLINE# #INDENT# self . add ( layer )