parameters: (self, session_log, global_step=None)
docstring: Adds a `SessionLog` protocol buffer to the event file.
  
      This method wraps the provided session in an `Event` protocol buffer
      and adds it to the event file.
  
      Args:
        session_log: A `SessionLog` protocol buffer.
        global_step: Number. Optional global step value to record with the
          summary.
docstring_summary: Adds a `SessionLog` protocol buffer to the event file.
docstring_tokens: Adds a SessionLog protocol buffer to the event file .
function: def add_session_log(self, session_log, global_step=None):
      """Adds a `SessionLog` protocol buffer to the event file.
  
      This method wraps the provided session in an `Event` protocol buffer
      and adds it to the event file.
  
      Args:
        session_log: A `SessionLog` protocol buffer.
        global_step: Number. Optional global step value to record with the
          summary.
      """
      event = event_pb2.Event(wall_time=time.time(), session_log=session_log)
      if global_step is not None:
        event.step = int(global_step)
      self.add_event(event)
function_tokens: def add_session_log ( self , session_log , global_step = None ) : event = event_pb2 . Event ( wall_time = time . time ( ) , session_log = session_log ) if global_step is not None : event . step = int ( global_step ) self . add_event ( event )