#NEWLINE# def __init__( self , dim , dimensions = 1 , peepholes = False , name = None ) : #NEWLINE# #INDENT# self . setArgs ( dim = dim , peepholes = peepholes , dimensions = dimensions ) #NEWLINE# self . bufferlist = [ ( 'ingate' , dim ) , ( 'outgate' , dim ) , ( 'forgetgate' , ( dim * dimensions ) ) , ( 'ingatex' , dim ) , ( 'outgatex' , dim ) , ( 'forgetgatex' , ( dim * dimensions ) ) , ( 'state' , dim ) , ( 'ingateError' , dim ) , ( 'outgateError' , dim ) , ( 'forgetgateError' , ( dim * dimensions ) ) , ( 'stateError' , dim ) ] #NEWLINE# Module . __init__ ( self , ( ( 3 + ( 2 * dimensions ) ) * dim ) , ( dim * 2 ) , name ) #NEWLINE# if self . peepholes : #NEWLINE# #INDENT# ParameterContainer . __init__ ( self , ( dim * ( 2 + dimensions ) ) ) #NEWLINE# self . _setParameters ( self . params ) #NEWLINE# self . _setDerivatives ( self . derivs )