#NEWLINE# def fprop_step( self , state_below , z , U ) : #NEWLINE# #INDENT# '\n        Scan function for case without masks\n\n        Parameters\n        ----------\n        : todo\n        state_below : TheanoTensor\n        ' #NEWLINE# g_on = ( state_below + tensor . dot ( z [ : , : self . dim ] , U ) ) #NEWLINE# i_on = tensor . nnet . sigmoid ( g_on [ : , : self . dim ] ) #NEWLINE# f_on = tensor . nnet . sigmoid ( g_on [ : , self . dim : ( 2 * self . dim ) ] ) #NEWLINE# o_on = tensor . nnet . sigmoid ( g_on [ : , ( 2 * self . dim ) : ( 3 * self . dim ) ] ) #NEWLINE# z = tensor . set_subtensor ( z [ : , self . dim : ] , ( ( f_on * z [ : , self . dim : ] ) + ( i_on * tensor . tanh ( g_on [ : , ( 3 * self . dim ) : ] ) ) ) ) #NEWLINE# z = tensor . set_subtensor ( z [ : , : self . dim ] , ( o_on * tensor . tanh ( z [ : , self . dim : ] ) ) ) #NEWLINE# return z