Skip to content

Commit

Permalink
Merge pull request #763 from null-a/rm-grad-clip-assert
Browse files Browse the repository at this point in the history
Remove unnecessary assertion.
  • Loading branch information
stuhlmueller committed Jan 20, 2017
2 parents 9473e38 + dcedd1e commit d20a16a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/params/struct.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function clip(g, threshold, normOfG) {
assert.ok(_.isNumber(threshold));
if (normOfG > threshold) {
mulEq(g, threshold / normOfG);
assert.ok(Math.abs(threshold - norm(g)) < 1e-10);
}
}

Expand Down

0 comments on commit d20a16a

Please sign in to comment.