#NEWLINE# @ application ( inputs = [ 'input_' ] , outputs = [ 'output_' ] ) #NEWLINE# def apply( self , input_ ) : #NEWLINE# #INDENT# if self . _dot : #NEWLINE# #INDENT# return tensor . dot ( input_ , self . _matrix ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return tensor . take ( input_ , input_ . _permutation , axis = 1 )