#NEWLINE# def fprop( self , inputs , inference = False , beta = 0.0 ) : #NEWLINE# #INDENT# self . inputs = inputs #NEWLINE# if ( ( self . actual_bsz is None ) and ( self . actual_seq_len is None ) ) : #NEWLINE# #INDENT# self . be . compound_dot ( A = self . W , B = self . inputs , C = self . outputs , beta = beta , bsum = self . batch_sum ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# bsz = ( self . be . bsz if ( self . actual_bsz is None ) else self . actual_bsz ) #NEWLINE# steps = ( self . nsteps if ( self . actual_seq_len is None ) else self . actual_seq_len ) #NEWLINE# self . be . compound_dot ( A = self . W , B = self . inputs [ : , : ( bsz * steps ) ] , C = self . outputs [ : , : ( bsz * steps ) ] , beta = beta , bsum = self . batch_sum ) #NEWLINE# #UNINDENT# return self . outputs