utils.writer.tensorboard
Tensorboard writer module.
Tensorboard Objects#
This class implements a wrapper on Tensorboard's SummaryWriter for logging stats to Tensorboard. Please look here for detailed information on each function: https://pytorch.org/docs/stable/tensorboard.html# Visit this blog for more examples on logging stats to Tensorboard: https://krishansubudhi.github.io/deeplearning/2020/03/24/tensorboard-pytorch.html
log_scalar#
Log metric to Tensorboard graph.
log_multi#
Log multiple metrics in the same Tensorboard graph.
log_model#
Log model weights and gradients to Tensorboard.
log_embedding#
Log model embeddings to Tensorboard.
log_graph#
Logs model graphs to Tensorboard.
Arguments:
modelobject - unwrapped model with a function get_sample_input() implemented.devicestr - device type.
log_image#
Log image in Tensorboard.
log_pr_curve#
Log Precision Recall curve in Tensorboard.
log_args#
Log all the Arguments used in the experiment to Tensorboard.
log_histogram#
Log histograms in Tensorboard. Avoid using small step size since it impact training time.
flush#
Flush the SummaryWriter to write out Summary to Tensorboard.
finish#
Flush the SummaryWriter to write out Summary to Tensorboard and close SummaryWriter.