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 291dc1b commit b19b155Copy full SHA for b19b155
docs/source-pytorch/debug/debugging_basic.rst
@@ -128,6 +128,16 @@ To add the child modules to the summary add a :class:`~pytorch_lightning.callbac
128
129
trainer = Trainer(callbacks=[ModelSummary(max_depth=-1)])
130
131
+To print the model summary if ``.fit()`` is not called:
132
+
133
+.. code-block:: python
134
135
+ from pytorch_lightning.utilities.model_summary import ModelSummary
136
137
+ model = LitModel()
138
+ summary = ModelSummary(model, max_depth=-1)
139
+ print(summary)
140
141
To turn off the autosummary use:
142
143
.. code:: python
0 commit comments