MCPcopy Index your code
hub / github.com/zai-org/CodeGeeX / write_args_to_tensorboard

Function write_args_to_tensorboard

codegeex/megatron/initialize.py:305–311  ·  view source on GitHub ↗

Write arguments to tensorboard.

()

Source from the content-addressed store, hash-verified

303
304
305def write_args_to_tensorboard():
306 """Write arguments to tensorboard."""
307 args = get_args()
308 writer = get_tensorboard_writer()
309 if writer:
310 for arg in vars(args):
311 writer.add_text(arg, str(getattr(args, arg)), global_step=args.iteration)
312
313
314def initialize_wandb_experiment():

Callers 1

trainFunction · 0.90

Calls 2

get_argsFunction · 0.90
get_tensorboard_writerFunction · 0.90

Tested by

no test coverage detected