#NEWLINE# def allocate( self , shared_outputs = None ) : #NEWLINE# #INDENT# super ( ParameterLayer , self ) . allocate ( shared_outputs ) #NEWLINE# if ( self . W is None ) : #NEWLINE# #INDENT# self . init_params ( self . weight_shape ) #NEWLINE# #UNINDENT# if ( self . batch_sum_shape is not None ) : #NEWLINE# #INDENT# self . batch_sum = self . be . empty ( shared_outputs . batch_sum_shape , dtype = np . float32 , ** self . get_param_attrs ( ) )