def configure(self, flags):
        if self.configured is True:
            return
        self.configured = True
        
        if sys.modules in 'theano':
            self.log.warning('Theano was already imported and cannot be reconfigured.')
            return

        os.environ.setdefault('THEANO_FLAGS', flags+',print_active_device=False')
        cuda = logging.getLogger('theano.sandbox.cuda')
        cuda.setLevel(logging.CRITICAL)
        import theano
        cuda.setLevel(logging.WARNING)

        try:
            import theano.sandbox.cuda as cd
            self.log.info('Using device gpu%i: %s', cd.active_device_number(), cd.active_device_name())
        except AttributeError:
            self.log.info('Using device cpu0, with %r.', theano.config.floatX)
dataset/ETHPy150Open aigamedev/scikit-neuralnetwork/sknn/__init__.py/TheanoConfigurator.configure/swapped operands of `in`