parameters: (self)
docstring: Serialize everything from a TensorBoard backend.
docstring_summary: Serialize everything from a TensorBoard backend.
docstring_tokens: Serialize everything from a TensorBoard backend .
function: def Run(self):
      """Serialize everything from a TensorBoard backend."""
      # get the runs object, which is an index for every tag.
      runs = self.GetRouteAndSave('runs')
  
      # collect sampled data.
      self.GetRouteAndSave('scalars')
  
      # now let's just download everything!
      for run, tag_type_to_tags in six.iteritems(runs):
        for tag_type, tags in six.iteritems(tag_type_to_tags):
          try:
            if tag_type == 'graph':
              # in this case, tags is a bool which specifies if graph is present.
              if tags:
                url = Url('graph', {'run': run})
                self.GetAndSave(url, GRAPH_SUFFIX, unzip=True)
            elif tag_type == 'images':
              for t in tags:
                images = self.GetRouteAndSave('images', {'run': run, 'tag': t})
                for im in images:
                  url = 'individualImage?' + im['query']
                  # pull down the images themselves.
                  self.GetAndSave(url, IMAGE_SUFFIX)
            elif tag_type == 'audio':
              for t in tags:
                audio = self.GetRouteAndSave('audio', {'run': run, 'tag': t})
                for snd in audio:
                  url = 'individualAudio?' + snd['query']
                  # pull down the audio clips themselves
                  self.GetAndSave(url, AUDIO_SUFFIX)
            elif tag_type == 'run_metadata':
              for t in tags:
                url = Url('run_metadata', {'run': run, 'tag': t})
                self.GetAndSave(url, GRAPH_SUFFIX, unzip=True)
            elif tag_type == 'firstEventTimestamp':
              pass
            else:
              for t in tags:
              # Save this, whatever it is :)
                self.GetRouteAndSave(tag_type, {'run': run, 'tag': t})
          except IOError as e:
            PrintAndLog('Retrieval failed for %s/%s/%s' % (tag_type, run, tags),
                        tf.logging.WARN)
            PrintAndLog('Got Exception: %s' % e, tf.logging.WARN)
            PrintAndLog('continuing...', tf.logging.WARN)
            continue
function_tokens: def Run ( self ) : # get the runs object, which is an index for every tag. runs = self . GetRouteAndSave ( 'runs' ) # collect sampled data. self . GetRouteAndSave ( 'scalars' ) # now let's just download everything! for run , tag_type_to_tags in six . iteritems ( runs ) : for tag_type , tags in six . iteritems ( tag_type_to_tags ) : try : if tag_type == 'graph' : # in this case, tags is a bool which specifies if graph is present. if tags : url = Url ( 'graph' , { 'run' : run } ) self . GetAndSave ( url , GRAPH_SUFFIX , unzip = True ) elif tag_type == 'images' : for t in tags : images = self . GetRouteAndSave ( 'images' , { 'run' : run , 'tag' : t } ) for im in images : url = 'individualImage?' + im [ 'query' ] # pull down the images themselves. self . GetAndSave ( url , IMAGE_SUFFIX ) elif tag_type == 'audio' : for t in tags : audio = self . GetRouteAndSave ( 'audio' , { 'run' : run , 'tag' : t } ) for snd in audio : url = 'individualAudio?' + snd [ 'query' ] # pull down the audio clips themselves self . GetAndSave ( url , AUDIO_SUFFIX ) elif tag_type == 'run_metadata' : for t in tags : url = Url ( 'run_metadata' , { 'run' : run , 'tag' : t } ) self . GetAndSave ( url , GRAPH_SUFFIX , unzip = True ) elif tag_type == 'firstEventTimestamp' : pass else : for t in tags : # Save this, whatever it is :) self . GetRouteAndSave ( tag_type , { 'run' : run , 'tag' : t } ) except IOError as e : PrintAndLog ( 'Retrieval failed for %s/%s/%s' % ( tag_type , run , tags ) , tf . logging . WARN ) PrintAndLog ( 'Got Exception: %s' % e , tf . logging . WARN ) PrintAndLog ( 'continuing...' , tf . logging . WARN ) continue