import tensorflow as tf

        if monitorSession:
            # MonitoredSession
            # this will restore all the variables from the latest checkpoint if it exists
            self._fix_checkpoint_abs_to_rel(self._checkpoint_dir) # need to ensure checkpoint has relative path saved

            chiefsess_creator = tf.train.ChiefSessionCreator(config=sess_config, checkpoint_dir=self._checkpoint_dir)

            if self._restore_chkptfile is not None:
                self._network.init_saver()
            # this is restoring variables 
