remove pointlessly duplicated CheckGradientExhaustive calls (I screwed
authorJeff Donahue <jeff.donahue@gmail.com>
Sun, 16 Feb 2014 00:48:10 +0000 (16:48 -0800)
committerJeff Donahue <jeff.donahue@gmail.com>
Sun, 16 Feb 2014 00:48:10 +0000 (16:48 -0800)
up when merging, I think)

src/caffe/test/test_split_layer.cpp

index 1d7c3d5..f76f55a 100644 (file)
@@ -119,7 +119,6 @@ TYPED_TEST(SplitLayerTest, TestCPUGradient) {
   Caffe::set_mode(Caffe::CPU);
   SplitLayer<TypeParam> layer(layer_param);
   GradientChecker<TypeParam> checker(1e-2, 1e-2);
-  checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_, this->blob_top_vec_);
   checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_,
       this->blob_top_vec_);
 }
@@ -129,7 +128,6 @@ TYPED_TEST(SplitLayerTest, TestGPUGradient) {
   Caffe::set_mode(Caffe::GPU);
   SplitLayer<TypeParam> layer(layer_param);
   GradientChecker<TypeParam> checker(1e-2, 1e-2);
-  checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_, this->blob_top_vec_);
   checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_,
       this->blob_top_vec_);
 }
@@ -140,7 +138,6 @@ TYPED_TEST(SplitLayerTest, TestCPUGradientInPlace) {
   SplitLayer<TypeParam> layer(layer_param);
   GradientChecker<TypeParam> checker(1e-2, 1e-2);
   this->blob_top_vec_[0] = this->blob_bottom_vec_[0];
-  checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_, this->blob_top_vec_);
   checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_,
       this->blob_top_vec_);
 }
@@ -151,7 +148,6 @@ TYPED_TEST(SplitLayerTest, TestGPUGradientInPlace) {
   SplitLayer<TypeParam> layer(layer_param);
   GradientChecker<TypeParam> checker(1e-2, 1e-2);
   this->blob_top_vec_[0] = this->blob_bottom_vec_[0];
-  checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_, this->blob_top_vec_);
   checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_,
       this->blob_top_vec_);
 }