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 de06af0 commit f1eec41Copy full SHA for f1eec41
docs/source-pytorch/extensions/callbacks_state.rst
@@ -22,9 +22,9 @@ the following example.
22
self.state = {"epochs": 0, "batches": 0}
23
24
@property
25
- def state_key(self):
+ def state_key(self) -> str:
26
# note: we do not include `verbose` here on purpose
27
- return self._generate_state_key(what=self.what)
+ return f"Counter[what={self.what}]"
28
29
def on_train_epoch_end(self, *args, **kwargs):
30
if self.what == "epochs":
0 commit comments