#NEWLINE# def __init__( self , input_dim , output_dim , init = 'uniform' , input_length = None , W_regularizer = None , activity_regularizer = None , W_constraint = None , mask_zero = False , weights = None , dropout = 0.0 , **kwargs ) : #NEWLINE# #INDENT# self . input_dim = input_dim #NEWLINE# self . output_dim = output_dim #NEWLINE# self . init = initializations . get ( init ) #NEWLINE# self . input_length = input_length #NEWLINE# self . mask_zero = mask_zero #NEWLINE# self . dropout = dropout #NEWLINE# self . W_constraint = constraints . get ( W_constraint ) #NEWLINE# self . W_regularizer = regularizers . get ( W_regularizer ) #NEWLINE# self . activity_regularizer = regularizers . get ( activity_regularizer ) #NEWLINE# if ( 0.0 < self . dropout < 1.0 ) : #NEWLINE# #INDENT# self . uses_learning_phase = True #NEWLINE# #UNINDENT# self . initial_weights = weights #NEWLINE# kwargs [ 'input_shape' ] = ( self . input_length , ) #NEWLINE# kwargs [ 'input_dtype' ] = 'int32' #NEWLINE# super ( Embedding , self ) . __init__ ( ** kwargs )