MCPcopy Create free account
hub / github.com/Vchitect/SEINE / create_tensorboard

Function create_tensorboard

utils.py:204–212  ·  view source on GitHub ↗

Create a tensorboard that saves losses.

(tensorboard_dir)

Source from the content-addressed store, hash-verified

202
203
204def create_tensorboard(tensorboard_dir):
205 """
206 Create a tensorboard that saves losses.
207 """
208 if dist.get_rank() == 0: # real tensorboard
209 # tensorboard
210 writer = SummaryWriter(tensorboard_dir)
211
212 return writer
213
214def write_tensorboard(writer, *args):
215 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected