ModelSummary¶
- class lightning.pytorch.callbacks.ModelSummary(max_depth=1, **summarize_kwargs)[source]¶
Bases:
Callback
Generates a summary of all layers in a
LightningModule
.- Parameters:
Example:
>>> from lightning.pytorch import Trainer >>> from lightning.pytorch.callbacks import ModelSummary >>> trainer = Trainer(callbacks=[ModelSummary(max_depth=1)])