Skip to content

Commit

Permalink
Newline after code-block directive
Browse files Browse the repository at this point in the history
  • Loading branch information
lantiga committed Nov 26, 2024
1 parent 06c6af6 commit acb3125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source-fabric/advanced/compile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ This is particularly handy when :func:`torch.compile` is used in combination wit
Here is an example:

.. code-block:: python
import lightning as L
import torch
import torch.nn as nn
Expand Down Expand Up @@ -173,6 +174,7 @@ that need to be applied in a similar fashion, it's easy to reason about the sequ
needed to achieve the equivalent of `compile(distributed(quantized(model)))`:

.. code-block:: python
import lightning as L
import torch
import torch.nn as nn
Expand Down
2 changes: 2 additions & 0 deletions docs/source-pytorch/advanced/compile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ This is particularly handy when :func:`torch.compile` is used in combination wit
Here is an example:

.. code-block:: python
import lightning as L
import torch
import torch.nn as nn
Expand Down Expand Up @@ -203,6 +204,7 @@ that need to be applied in a similar fashion, it's easy to reason about the sequ
needed to achieve the equivalent of `compile(distributed(quantized(model)))`:

.. code-block:: python
import lightning as L
import torch
import torch.nn as nn
Expand Down

0 comments on commit acb3125

Please sign in to comment.