ModelSummary
- class lightning.pytorch.callbacks.ModelSummary(max_depth=1, **summarize_kwargs)
Bases:
CallbackGenerates 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)])- on_fit_start(trainer, pl_module)
Called when fit begins.
- Return type:
Was this page helpful?
Thanks for the feedback.