Skip to content

Commit

Permalink
add split layer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonahue authored and shelhamer committed Feb 26, 2014
1 parent f0562d7 commit 5ca5ef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/caffe/test/test_split_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ TYPED_TEST(SplitLayerTest, TestCPUGradient) {
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_);
}

TYPED_TEST(SplitLayerTest, TestGPUGradient) {
Expand All @@ -100,6 +102,8 @@ TYPED_TEST(SplitLayerTest, TestGPUGradient) {
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_);
}

}

0 comments on commit 5ca5ef5

Please sign in to comment.