We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc61361 commit b730a5aCopy full SHA for b730a5a
pytorch_lightning/profiler/profilers.py
@@ -148,7 +148,9 @@ def describe(self) -> None:
148
# so to avoid them, we open and close the files within this function
149
# by calling `_prepare_streams` and `teardown`
150
self._prepare_streams()
151
- self._write_stream(self.summary())
+ summary = self.summary()
152
+ if summary:
153
+ self._write_stream(summary)
154
if self._output_file is not None:
155
self._output_file.flush()
156
self.teardown(stage=self._stage)
0 commit comments