class_docstr: Writes entries to `Summary` protocol buffer.
docstr: Adds scalar to the summary.
docstr_tok: ["Adds","scalar","to","the","summary","."]
code: def scalar(
      self,
      tag: str,
      value: float,
      reduce: Union[Callable, Reducer] = Reducer.MEAN,
  ):
      """Adds scalar to the summary."""
      if tag not in self:
          self[tag] = DelayedScalar(reduce)
      self[tag].values.append(value)
  
imports: import enum
  import os
  from time import time
  from typing import Union, Callable, Tuple, ByteString
  import numpy
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.summary.writer.event_file_writer import EventFileWriter
  from tensorboard.util.tensor_util import make_tensor_proto
  from objax import util
label_desc: Use image node_id 2 for calling the Summary obj's underlying member method code with example usage: obj.scalar(tag, value, reduce) without return types