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 660c269 commit 097e647Copy full SHA for 097e647
src/lightning/pytorch/profilers/advanced.py
@@ -116,7 +116,7 @@ def summary(self) -> str:
116
@override
117
def teardown(self, stage: Optional[str]) -> None:
118
super().teardown(stage=stage)
119
- self.profiled_actions = defaultdict(cProfile.Profile)
+ self.profiled_actions.clear()
120
121
def __reduce__(self) -> tuple:
122
# avoids `TypeError: cannot pickle 'cProfile.Profile' object`
0 commit comments