Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/source-pytorch/debug/debugging_basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ To add the child modules to the summary add a :class:`~pytorch_lightning.callbac

trainer = Trainer(callbacks=[ModelSummary(max_depth=-1)])

To print the model summary if ``.fit()`` is not called:

.. code-block:: python

from pytorch_lightning.utilities.model_summary import ModelSummary

model = LitModel()
summary = ModelSummary(model, max_depth=-1)
print(summary)

To turn off the autosummary use:

.. code:: python
Expand Down