utils.writer.tensorboard
Tensorboard writer module.
#
Tensorboard ObjectsThis 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_scalarLog metric to Tensorboard graph.
#
log_multiLog multiple metrics in the same Tensorboard graph.
#
log_modelLog model weights and gradients to Tensorboard.
#
log_embeddingLog model embeddings to Tensorboard.
#
log_graphLogs model graphs to Tensorboard.
Arguments:
model
object - unwrapped model with a function get_sample_input() implemented.device
str - device type.
#
log_imageLog image in Tensorboard.
#
log_pr_curveLog Precision Recall curve in Tensorboard.
#
log_argsLog all the Arguments used in the experiment to Tensorboard.
#
log_histogramLog histograms in Tensorboard. Avoid using small step size since it impact training time.
#
flushFlush the SummaryWriter to write out Summary to Tensorboard.
#
finishFlush the SummaryWriter to write out Summary to Tensorboard and close SummaryWriter.