MCPcopy Create free account
hub / github.com/Turing-Project/WriteGPT / log_tensorboard

Method log_tensorboard

LanguageNetwork/BERT/models/stats.py:116–120  ·  view source on GitHub ↗

display statistics to tensorboard

(self, prefix, writer, learning_rate, step)

Source from the content-addressed store, hash-verified

114 sys.stdout.flush()
115
116 def log_tensorboard(self, prefix, writer, learning_rate, step):
117 """ display statistics to tensorboard """
118 t = self.elapsed_time()
119 writer.add_scalar(prefix + "/xent", self.xent(), step)
120 writer.add_scalar(prefix + "/lr", learning_rate, step)

Callers 1

maybe_log_tensorboardMethod · 0.80

Calls 2

elapsed_timeMethod · 0.95
xentMethod · 0.95

Tested by

no test coverage detected