Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Aug 14, 2018
1 parent 5a9fc4d commit b3503b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torchbearer/callbacks/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ def ope(state):
def only_if(condition_expr):
"""
Decorator to fire a callback only if the given conditional expression function returns True.
:param condition_expr: a function/lambda that must evaluate to true for the
decorated `torchbearer callback` to be called. The `state`
object passed to the callback will be passed as an argument
:param condition_expr: a function/lambda that must evaluate to true for the\
decorated `torchbearer callback` to be called. The `state`\
object passed to the callback will be passed as an argument\
to the condition function.
:return: the decorator
"""
Expand Down

0 comments on commit b3503b7

Please sign in to comment.