(self, text, step, tag="regular log")
This function only add text to log.txt and tensorboard texts
This function only add text to log.txt and tensorboard texts
This function only add text to log . txt and tensorboard texts
def log_text(self, text, step, tag="regular log"):
        """This function only add text to log.txt and tensorboard texts
        """
        print(text)
        print(text, file=self.log_file)
        if step > self._text_current_gstep and self._text_current_gstep != -1:
            total_text = '\n'.join(self._tb_texts)
            self.summary_writter.add_text(tag, total_text, global_step=step)
            self._tb_texts = []
            self._text_current_gstep = step
        else:
            self._tb_texts.append(text)
        if self._text_current_gstep == -1:
            self._text_current_gstep = step
def log_text ( self , text , step , tag = "regular log" ) : print ( text ) print ( text , file = self . log_file ) if step > self . _text_current_gstep and self . _text_current_gstep != - 1 : total_text = '\n' . join ( self . _tb_texts ) self . summary_writter . add_text ( tag , total_text , global_step = step ) self . _tb_texts = [ ] self . _text_current_gstep = step else : self . _tb_texts . append ( text ) if self . _text_current_gstep == - 1 : self . _text_current_gstep = step