From 009bb0549ad0c9c1130309d95529a237e126578c Mon Sep 17 00:00:00 2001 From: Yuan <37043390+xy9485@users.noreply.github.com> Date: Tue, 15 Mar 2022 21:48:52 +0100 Subject: [PATCH] Update tensorboard.rst in SummaryWriterCallback (#822) * Update tensorboard.rst * update changelog.rst * update changelog.rst, add username --- docs/guide/tensorboard.rst | 2 +- docs/misc/changelog.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/guide/tensorboard.rst b/docs/guide/tensorboard.rst index 6235a14..dc39d8b 100644 --- a/docs/guide/tensorboard.rst +++ b/docs/guide/tensorboard.rst @@ -265,7 +265,7 @@ can get direct access to the underlying SummaryWriter in a callback: def _on_training_start(self): self._log_freq = 1000 # log every 1000 calls - output_formats = self.logger.Logger.CURRENT.output_formats + output_formats = self.logger.output_formats # Save reference to tensorboard formatter object # note: the failure case (not formatter found) is not handled here, should be done with try/except. self.tb_formatter = next(formatter for formatter in output_formats if isinstance(formatter, TensorBoardOutputFormat)) diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 599ff95..c1d8d16 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -48,6 +48,7 @@ Documentation: - Fix indentation 2 spaces to 4 spaces in custom env documentation example (@Gautam-J) - Update MlpExtractor docstring (@gianlucadecola) - Added explanation of the logger output +- Update ``Directly Accessing The Summary Writer`` in tensorboard integration (@xy9485) Release 1.4.0 (2022-01-18) --------------------------- @@ -926,4 +927,4 @@ And all the contributors: @benblack769 @bstee615 @c-rizz @skandermoalla @MihaiAnca13 @davidblom603 @ayeright @cyprienc @wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum @eleurent @ac-93 @cove9988 @theDebugger811 @hsuehch @Demetrio92 @thomasgubler @IperGiove @ScheiklP -@simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu +@simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu @xy9485