#NEWLINE# @ application #NEWLINE# def apply( self , forward_dict , backward_dict ) : #NEWLINE# #INDENT# 'Applies forward and backward networks and concatenates outputs.' #NEWLINE# forward = self . children [ 0 ] . apply ( as_list = True , ** forward_dict ) #NEWLINE# backward = [ x [ : : ( - 1 ) ] for x in self . children [ 1 ] . apply ( reverse = True , as_list = True , ** backward_dict ) ] #NEWLINE# return [ tensor . concatenate ( [ f , b ] , axis = 2 ) for ( f , b ) in equizip ( forward , forward_dict ) ]