parameters: (self)
docstring: Restore thread local fields of context.context() from self.
docstring_summary: Restore thread local fields of context.context() from self.
docstring_tokens: Restore thread local fields of context . context () from self .
function: def restore_thread_local_context_fields(self):
      """Restore thread local fields of context.context() from self."""
      ctx = context.context()
      ctx.summary_step = self._summary_step
      ctx.summary_writer = self._summary_writer
      ctx.summary_recording = self._summary_recording
      ctx.summary_recording_distribution_strategy = (
          self._summary_recording_distribution_strategy)
function_tokens: def restore_thread_local_context_fields ( self ) : ctx = context . context ( ) ctx . summary_step = self . _summary_step ctx . summary_writer = self . _summary_writer ctx . summary_recording = self . _summary_recording ctx . summary_recording_distribution_strategy = ( self . _summary_recording_distribution_strategy )