make gradient checker's kink use feature absolute value
authorJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 25 Apr 2014 23:38:48 +0000 (16:38 -0700)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Fri, 25 Apr 2014 23:51:50 +0000 (16:51 -0700)
commita61a2acc4e05bf73db6885bef4f9e32a46d278c7
tree12e14426b30c81a38d2fa9b3397aa60da1d438e2
parentdbad77552149377eb3a0735f2e613ac1840a1280
make gradient checker's kink use feature absolute value

In theory, layer functions could be nonsmooth anywhere; in all cases in
use so far, they are nonsmooth at either zero or +1 and -1. In the
future, it might be necessary to generalize the kink mechanism beyond
this stopgap measure.
src/caffe/test/test_gradient_check_util.hpp