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

Function write_tensorboard

utils.py:214–220  ·  view source on GitHub ↗

write the loss information to a tensorboard file. Only for pytorch DDP mode.

(writer, *args)

Source from the content-addressed store, hash-verified

212 return writer
213
214def write_tensorboard(writer, *args):
215 '''
216 write the loss information to a tensorboard file.
217 Only for pytorch DDP mode.
218 '''
219 if dist.get_rank() == 0: # real tensorboard
220 writer.add_scalar(args[0], args[1], args[2])
221
222#################################################################################
223# EMA Update/ DDP Training Utils #

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected