#NEWLINE# def __init__( self , * layers ) : #NEWLINE# #INDENT# super ( Chain , self ) . __init__ ( 'chain' ) #NEWLINE# self . layers = [ ] #NEWLINE# self . _layers_to_stack = [ ] #NEWLINE# if ( ( len ( layers ) == 1 ) and ( type ( layers [ 0 ] ) == int ) ) : #NEWLINE# #INDENT# self . input_dim = self [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . stack ( * layers )