#NEWLINE# def get_mode( self , excluding = None ) : #NEWLINE# #INDENT# "\n        Return appropriate mode for the tests.\n\n        :param excluding: List of optimizations to exclude.\n\n        :return: The current default mode unless the `config.mode` option is\n        set to 'FAST_COMPILE' (in which case it is replaced by the 'FAST_RUN'\n        mode), without the optimizations specified in `excluding`.\n        " #NEWLINE# if ( excluding is None ) : #NEWLINE# #INDENT# excluding = [ ] #NEWLINE# #UNINDENT# m = theano . config . mode #NEWLINE# if ( m == 'FAST_COMPILE' ) : #NEWLINE# #INDENT# mode = theano . compile . mode . get_mode ( 'FAST_RUN' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# mode = theano . compile . mode . get_default_mode ( ) #NEWLINE# #UNINDENT# if excluding : #NEWLINE# #INDENT# return mode . excluding ( * excluding ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return mode