parameters: (self, summary, global_step=None)
docstring: Adds a `Summary` protocol buffer to the event file.
  
      This method wraps the provided summary in an `Event` protocol buffer
      and adds it to the event file.
  
      You can pass the result of evaluating any summary op, using
      [`Session.run()`](client.md#Session.run) or
      [`Tensor.eval()`](framework.md#Tensor.eval), to this
      function. Alternatively, you can pass a `tf.Summary` protocol
      buffer that you populate with your own data. The latter is
      commonly done to report evaluation results in event files.
  
      Args:
        summary: A `Summary` protocol buffer, optionally serialized as a string.
        global_step: Number. Optional global step value to record with the
          summary.
docstring_summary: Adds a `Summary` protocol buffer to the event file.
docstring_tokens: Adds a Summary protocol buffer to the event file .
function: def add_summary(self, summary, global_step=None):
      """Adds a `Summary` protocol buffer to the event file.
  
      This method wraps the provided summary in an `Event` protocol buffer
      and adds it to the event file.
  
      You can pass the result of evaluating any summary op, using
      [`Session.run()`](client.md#Session.run) or
      [`Tensor.eval()`](framework.md#Tensor.eval), to this
      function. Alternatively, you can pass a `tf.Summary` protocol
      buffer that you populate with your own data. The latter is
      commonly done to report evaluation results in event files.
  
      Args:
        summary: A `Summary` protocol buffer, optionally serialized as a string.
        global_step: Number. Optional global step value to record with the
          summary.
      """
      if isinstance(summary, bytes):
        summ = summary_pb2.Summary()
        summ.ParseFromString(summary)
        summary = summ
      event = event_pb2.Event(wall_time=time.time(), summary=summary)
      if global_step is not None:
        event.step = int(global_step)
      self.add_event(event)
function_tokens: def add_summary ( self , summary , global_step = None ) : if isinstance ( summary , bytes ) : summ = summary_pb2 . Summary ( ) summ . ParseFromString ( summary ) summary = summ event = event_pb2 . Event ( wall_time = time . time ( ) , summary = summary ) if global_step is not None : event . step = int ( global_step ) self . add_event ( event )