MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeedExamples / get_sample_writer

Function get_sample_writer

bing_bert/turing/utils.py:11–14  ·  view source on GitHub ↗

Returns a tensorboard summary writer

(name, base="..")

Source from the content-addressed store, hash-verified

9
10
11def get_sample_writer(name, base=".."):
12 """Returns a tensorboard summary writer
13 """
14 return SummaryWriter(log_dir=os.path.join(base, SUMMARY_WRITER_DIR_NAME, name))
15
16class TorchTuple(tuple):
17 def to(self, device, non_blocking=False):

Callers 1

prepare_model_optimizerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected