returned after calling "register_event_handler". After this returns
   the event handler will no longer receive events.
class torch.monitor.TensorboardEventHandler(writer)
TensorboardEventHandler is an event handler that will write known
   events to the provided SummaryWriter.
This currently only supports "torch.monitor.Stat" events which are
   logged as scalars.
-[ Example ]-



from torch.utils.tensorboard import SummaryWriter
from torch.monitor import TensorboardEventHandler, register_event_handler
writer = SummaryWriter("log_dir")
register_event_handler(TensorboardEventHandler(writer))



init(writer)
  Constructs the "TensorboardEventHandler".
