Skip to content

Commit

Permalink
roll back
Browse files Browse the repository at this point in the history
  • Loading branch information
antinucleon committed Jun 1, 2015
1 parent 1179320 commit 0566945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/updater/sgd_updater-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace updater {
/*! \brief used for gradient clipping and nan detection */
struct clip {
MSHADOW_XINLINE static real_t Map(real_t a, real_t b) {
if (std::isnan(a)) return 0.0f;
if (isnan(a)) return 0.0f;
if (a < -b) return -b;
if (a > b) return b;
return a;
Expand Down

0 comments on commit 0566945

Please sign in to comment.