Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 20, 2020
1 parent 63f031c commit c0d4f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/info_callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ does all of that for you before training begins.
This Callback will warn the user with the following message in case data mixing inside the batch is detected:

.. code-block:: bash
.. code-block::
Your model is mixing data across the batch dimension.
This can lead to wrong gradient updates in the optimizer.
Expand All @@ -123,4 +123,4 @@ that works with any PyTorch :class:`~torch.nn.Module` is also available:
verification = BatchGradientVerification(model)
valid = verification.check(input_array=torch.rand(2, 3, 4), sample_idx=1)
In this example we run the test on a batch size 2 by inspecting gradients on the second sample.
In this example we run the test on a batch size 2 by inspecting gradients on the second sample.

0 comments on commit c0d4f19

Please sign in to comment.