MCPcopy Create free account
hub / github.com/BVLC/caffe / GradientChecker

Method GradientChecker

include/caffe/test/test_gradient_check_util.hpp:24–28  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected