Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed May 10, 2016
1 parent e236fa0 commit 8fbc539
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class CustomMetric(EvalMetric):
The name of the metric
allow_extra_outputs : bool
If true, the prediction outputs can have extra outputs.
This is useful in RNN, where the states are also produced
This is useful in RNN, where the states are also produced
in outputs for forwarding.
"""
def __init__(self, feval, name=None, allow_extra_outputs=False):
Expand Down Expand Up @@ -362,7 +362,7 @@ def np(numpy_feval, name=None, allow_extra_outputs=False):
The name of the metric.
allow_extra_outputs : bool
If true, the prediction outputs can have extra outputs.
This is useful in RNN, where the states are also produced
This is useful in RNN, where the states are also produced
in outputs for forwarding.
"""
def feval(label, pred):
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def create_state(self, index, weight):
return None
else:
return zeros(weight.shape, weight.context, dtype=weight.dtype)

def update(self, index, weight, grad, state):
"""Update the parameters.
Expand Down

0 comments on commit 8fbc539

Please sign in to comment.