Add net tests for loss_weight.
authorJeff Donahue <jeff.donahue@gmail.com>
Fri, 11 Jul 2014 08:48:36 +0000 (01:48 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Wed, 13 Aug 2014 18:57:33 +0000 (11:57 -0700)
commit7a3ed9b8edf43895770b63cb4d9f5cacf0dba047
tree25ae32e517230009f913eff910a25316fbc5fb3e
parentd0cae53dd5291331ca7da0dfef0e7ff54e8e0bac
Add net tests for loss_weight.

Check that the loss and gradients throughout the net are appropriately scaled
for a few loss_weight values, assuming a default weight of 1 in the loss layer
only.  Also modify test_gradient_check_util to associate a loss of 2 rather
than 1 with the top blob, so that loss layer tests fail if they don't scale
their diffs.
include/caffe/test/test_gradient_check_util.hpp
src/caffe/test/test_net.cpp