kink and kink_range specify an ignored nonsmooth region of the form kink - kink_range <= |feature value| <= kink + kink_range, which accounts for all nonsmoothness in use by caffe
| 22 | // kink - kink_range <= |feature value| <= kink + kink_range, |
| 23 | // which accounts for all nonsmoothness in use by caffe |
| 24 | GradientChecker(const Dtype stepsize, const Dtype threshold, |
| 25 | const unsigned int seed = 1701, const Dtype kink = 0., |
| 26 | const Dtype kink_range = -1) |
| 27 | : stepsize_(stepsize), threshold_(threshold), seed_(seed), |
| 28 | kink_(kink), kink_range_(kink_range) {} |
| 29 | // Checks the gradient of a layer, with provided bottom layers and top |
| 30 | // layers. |
| 31 | // Note that after the gradient check, we do not guarantee that the data |
nothing calls this directly
no outgoing calls
no test coverage detected