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 b8a452c commit e462627Copy full SHA for e462627
src/lightning/pytorch/utilities/model_summary/model_summary.py
@@ -272,7 +272,7 @@ def param_nums(self) -> list[int]:
272
return [layer.num_parameters for layer in self._layer_summary.values()]
273
274
@property
275
- def training_modes(self) -> list[bool]:
+ def training_modes(self) -> list[int]:
276
return [(2 if layer.training else 1) if layer.requires_grad else 0 for layer in self._layer_summary.values()]
277
278
0 commit comments