Skip to content

Commit

Permalink
Fixed test to pass and don't exhaustive search since it takes too long
Browse files Browse the repository at this point in the history
  • Loading branch information
sguada committed Feb 28, 2014
1 parent 88bc0c1 commit eb56c5b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/caffe/test/test_concat_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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_));
}


Expand Down

0 comments on commit eb56c5b

Please sign in to comment.