(self)
Opens the Jaxboard summary writer wrapped by a context manager.

    Yields:
      A Jaxboard summary writer wrapped in a GeneratorContextManager object.
      Elements of the lists correspond to the training and evaluation task
      directories created during initialization. If there is no output_dir
      provided, yields None.
Opens the Jaxboard summary writer wrapped by a context manager.
Opens the Jaxboard summary writer wrapped by a context manager .
def _open_summary_writer(self):
    """Opens the Jaxboard summary writer wrapped by a context manager.

    Yields:
      A Jaxboard summary writer wrapped in a GeneratorContextManager object.
      Elements of the lists correspond to the training and evaluation task
      directories created during initialization. If there is no output_dir
      provided, yields None.
    """
    if self._output_dir is not None:
      writer = jaxboard.SummaryWriter(os.path.join(self._output_dir, 'rl'))
      try:
        yield writer
      finally:
        writer.close()
    else:
      yield None
def _open_summary_writer ( self ) : if self . _output_dir is not None : writer = jaxboard . SummaryWriter ( os . path . join ( self . _output_dir , 'rl' ) ) try : yield writer finally : writer . close ( ) else : yield None