Skip to content

Commit

Permalink
Fixing Function Signatures (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
xssChauhan committed Feb 17, 2020
1 parent a33beb6 commit f44dfb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/experiment_reporting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ To plot metrics into whatever logger you passed in (tensorboard, comet, neptune,

.. code-block:: python
def training_end(self, batch, batch_idx):
def training_end(self, outputs):
loss = some_loss()
...
logs = {'train_loss': loss}
results = {'log': logs}
return results
def validation_end(self, batch, batch_idx):
def validation_end(self, outputs):
loss = some_loss()
...
logs = {'val_loss': loss}
results = {'log': logs}
return results
def test_end(self, batch, batch_idx):
def test_end(self, outputs):
loss = some_loss()
...
Expand Down Expand Up @@ -99,7 +99,7 @@ Here we show the validation loss in the progress bar

.. code-block:: python
def validation_end(self, batch, batch_idx):
def validation_end(self, outputs):
loss = some_loss()
...
Expand Down

0 comments on commit f44dfb3

Please sign in to comment.