MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / get_sample_writer

Function get_sample_writer

SwissArmyTransformer/sat/training/utils.py:29–33  ·  view source on GitHub ↗

Returns a tensorboard summary writer

(name, base="..", iteration=0)

Source from the content-addressed store, hash-verified

27SUMMARY_WRITER_DIR_NAME = 'runs'
28
29def get_sample_writer(name, base="..", iteration=0):
30 """Returns a tensorboard summary writer
31 """
32 return SummaryWriter(
33 log_dir=os.path.join(base, SUMMARY_WRITER_DIR_NAME, name), purge_step=iteration)
34
35def init_wandb_writer(args):
36 """Initialize wandb writer."""

Callers 1

training_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected