Skip to content

Commit

Permalink
Add commment
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno committed Aug 14, 2017
1 parent 827a620 commit 1b022cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chainer/gradient_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ def check_backward(func, x_data, y_grad, params=(),
one = xp.array(1., dtype)

def g():
# This functions is called twice in `numerical_grad`.
# `one` is `1 + epsilon` or `1 - epsilon` in these calls.
# See the document of `numerical_grad`.
for skip, cx, data in six.moves.zip(no_grads, casted_xs, casted_data):
if skip:
continue
Expand Down

0 comments on commit 1b022cc

Please sign in to comment.