Maybe you can try TensorBoardX.
It is TensorBoard for PyTorch.
from tensorboardX import SummaryWriter
writer = SummaryWriter(path)
writer.add_scalars(path,  {'Data1' :value1, 'Data2' :value2}, index)
writer.close()