Skip to content

Commit

Permalink
add desc for minimize (#3216)
Browse files Browse the repository at this point in the history
  • Loading branch information
ananyahjha93 authored Aug 27, 2020
1 parent f03943e commit 40eaa21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/results.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ The `TrainResult` basic usage is this:

minimize
^^^^^^^^
When using TrainResult, the metric that needs to be minimized is passed to this
argument. Internally, the tensor is verified to contain gradients and `.backward()`
is called on it.

.. code-block:: python
def training_step(...):
Expand Down

0 comments on commit 40eaa21

Please sign in to comment.