MCPcopy
hub / github.com/Vchitect/Latte / create_tensorboard

Function create_tensorboard

utils.py:168–176  ·  view source on GitHub ↗

Create a tensorboard that saves losses.

(tensorboard_dir)

Source from the content-addressed store, hash-verified

166
167
168def create_tensorboard(tensorboard_dir):
169 """
170 Create a tensorboard that saves losses.
171 """
172 if dist.get_rank() == 0: # real tensorboard
173 # tensorboard
174 writer = SummaryWriter(tensorboard_dir)
175
176 return writer
177
178def write_tensorboard(writer, *args):
179 '''

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected