(self, summary_writer)
Saves the operative gin config.
Saves the operative gin config.
Saves the operative gin config .
def _save_gin(self, summary_writer):
    """"Saves the operative gin config."""
    if not self.is_chief or self._output_dir is None:
      return
    config_path = os.path.join(self._output_dir, 'config.gin')
    config_str = gin.operative_config_str()
    with tf.io.gfile.GFile(config_path, 'w') as f:
      f.write(config_str)
    if summary_writer is not None:
      summary_writer.text(
          'gin_config', jaxboard.markdownify_operative_config_str(config_str)
      )
def _save_gin ( self , summary_writer ) : if not self . is_chief or self . _output_dir is None : return config_path = os . path . join ( self . _output_dir , 'config.gin' ) config_str = gin . operative_config_str ( ) with tf . io . gfile . GFile ( config_path , 'w' ) as f : f . write ( config_str ) if summary_writer is not None : summary_writer . text ( 'gin_config' , jaxboard . markdownify_operative_config_str ( config_str ) )