original_docstring: Save statistics as tensorboard summaries.
docstring: Save statistics as tensorboard summaries.
docstring_tokens: Save statistics as tensorboard summaries .
code: def _save_tensorboard_summaries(self, iteration, num_episodes,
                                    average_reward):
      """Save statistics as tensorboard summaries."""
      summary = tf.Summary(value=[
          tf.Summary.Value(tag='Train/NumEpisodes', simple_value=num_episodes),
          tf.Summary.Value(
              tag='Train/AverageReturns', simple_value=average_reward),
      ])
      self._summary_writer.add_summary(summary, iteration)
code_tokens: def _save_tensorboard_summaries ( self , iteration , num_episodes , average_reward ) : summary = tf . Summary ( value = [ tf . Summary . Value ( tag = 'Train/NumEpisodes' , simple_value = num_episodes ) , tf . Summary . Value ( tag = 'Train/AverageReturns' , simple_value = average_reward ) , ] ) self . _summary_writer . add_summary ( summary , iteration )
short_docstring: Save statistics as tensorboard summaries.
short_docstring_tokens: Save statistics as tensorboard summaries .
comment: """Save statistics as tensorboard summaries."""