Skip to content

Commit 262746f

Browse files
authored
Apply suggestions from code review
1 parent 8e9cf6d commit 262746f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source-pytorch/accelerators/gpu_faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ In general, there are two common scaling rules:
5555

5656
1. **Linear scaling**: Increase the learning rate linearly with the number of devices.
5757

58-
.. testcode::
58+
.. code-block:: python
5959
6060
# Example: Linear scaling
6161
base_lr = 1e-3
@@ -64,7 +64,7 @@ In general, there are two common scaling rules:
6464
6565
2. **Square root scaling**: Increase the learning rate by the square root of the number of devices.
6666

67-
.. testcode::
67+
.. code-block:: python
6868
6969
# Example: Square root scaling
7070
base_lr = 1e-3

0 commit comments

Comments
 (0)