(self, prefix, writer, learning_rate, step)
display statistics to tensorboard
display statistics to tensorboard
display statistics to tensorboard
def log_tensorboard(self, prefix, writer, learning_rate, step):
        """ display statistics to tensorboard """
        t = self.elapsed_time()
        writer.add_scalar(prefix + "/xent", self.xent(), step)
        writer.add_scalar(prefix + "/ppl", self.ppl(), step)
        writer.add_scalar(prefix + "/accuracy", self.accuracy(), step)
        writer.add_scalar(prefix + "/tgtper", self.n_words / t, step)
        writer.add_scalar(prefix + "/lr", learning_rate, step)
def log_tensorboard ( self , prefix , writer , learning_rate , step ) : t = self . elapsed_time ( ) writer . add_scalar ( prefix + "/xent" , self . xent ( ) , step ) writer . add_scalar ( prefix + "/ppl" , self . ppl ( ) , step ) writer . add_scalar ( prefix + "/accuracy" , self . accuracy ( ) , step ) writer . add_scalar ( prefix + "/tgtper" , self . n_words / t , step ) writer . add_scalar ( prefix + "/lr" , learning_rate , step )