RichModelSummary
- class lightning.pytorch.callbacks.RichModelSummary(max_depth=1, **summarize_kwargs)
Bases:
ModelSummaryGenerates a summary of all layers in a
LightningModulewith rich text formatting.Install it with pip:
pip install richfrom lightning.pytorch import Trainer from lightning.pytorch.callbacks import RichModelSummary trainer = Trainer(callbacks=RichModelSummary())You could also enable
RichModelSummaryusing theRichProgressBarfrom lightning.pytorch import Trainer from lightning.pytorch.callbacks import RichProgressBar trainer = Trainer(callbacks=RichProgressBar())- Parameters:
- Raises:
ModuleNotFoundError – If required rich package is not installed on the device.
Was this page helpful?
Thanks for the feedback.