<s> from nose . plugins . skip import SkipTest <EOL> import theano . sandbox . cuda as cuda_ndarray <EOL> if cuda_ndarray . cuda_available == False : <EOL> raise SkipTest ( '<STR_LIT>' ) <EOL> import theano . tensor . nnet . tests . test_neighbours <EOL> from theano . sandbox . cuda . neighbours import GpuImages2Neibs <EOL> if theano . config . mode == '<STR_LIT>' : <EOL> mode_with_gpu = theano . compile . mode . get_mode ( '<STR_LIT>' ) . including ( '<STR_LIT>' ) <EOL> else : <EOL> mode_with_gpu = theano . compile . mode . get_default_mode ( ) . including ( '<STR_LIT>' ) <EOL> class T_GpuImages2Neibs ( theano . tensor . nnet . tests . test_neighbours . T_Images2Neibs ) : <EOL> mode = mode_with_gpu <EOL> op = GpuImages2Neibs <EOL> dtypes = [ '<STR_LIT>' ] <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
