import tensorflow as tf

        
        # set some important options
        if self._gpu == -1:
            sess_config = tf.ConfigProto(device_count = {'GPU': 0},
                                         allow_soft_placement=True)
        else:
            #config = tf.ConfigProto(log_device_placement=True)
            sess_config = tf.ConfigProto(allow_soft_placement=True)

        sess_config.gpu_options.allow_growth = True

        # self.sess = tf.Session(config=config)
        # self.sess = tf.InteractiveSession()

