import tensorflow as tf

            self.vars=self.vars[-1*NUM_VARS:];
            self.train_op = self.optimizer.apply_gradients(
                                    self.grads_and_vars, global_step=tf.contrib.framework.get_global_step())

