Fixed test to pass and don't exhaustive search since it takes too long
authorsguada <sguada@gmail.com>
Thu, 27 Feb 2014 06:33:57 +0000 (22:33 -0800)
committerSergio Guadarrama <sguada@gmail.com>
Fri, 28 Feb 2014 02:48:22 +0000 (18:48 -0800)
src/caffe/test/test_concat_layer.cpp

index 472c936..aeee81d 100644 (file)
@@ -110,7 +110,8 @@ TYPED_TEST(ConcatLayerTest, TestCPUGradient) {
   GradientChecker<TypeParam> checker(1e-2, 1e-3);
   // it is too expensive to call curand multiple times, so we don't do an
   // exhaustive gradient check.
-  checker.CheckGradient(layer, this->blob_bottom_vec_0, this->blob_top_vec_);
+  checker.CheckGradient(&layer, &(this->blob_bottom_vec_0),
+    &(this->blob_top_vec_));
 }
 
 TYPED_TEST(ConcatLayerTest, TestGPUGradient) {
@@ -120,7 +121,8 @@ TYPED_TEST(ConcatLayerTest, TestGPUGradient) {
   GradientChecker<TypeParam> checker(1e-2, 1e-3);
   // it is too expensive to call curand multiple times, so we don't do an
   // exhaustive gradient check.
-  checker.CheckGradient(layer, this->blob_bottom_vec_0, this->blob_top_vec_);
+  checker.CheckGradient(&layer, &(this->blob_bottom_vec_0),
+    &(this->blob_top_vec_));
 }