From: Jeff Donahue Date: Sat, 15 Feb 2014 20:24:00 +0000 (-0800) Subject: add split layer tests X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d86f9b0ce94b45d899a077ebeb47e78e257fa7df;p=platform%2Fupstream%2Fcaffe.git add split layer tests --- diff --git a/src/caffe/test/test_split_layer.cpp b/src/caffe/test/test_split_layer.cpp index 894f4c5..9a3a2d3 100644 --- a/src/caffe/test/test_split_layer.cpp +++ b/src/caffe/test/test_split_layer.cpp @@ -92,6 +92,8 @@ TYPED_TEST(SplitLayerTest, TestCPUGradient) { SplitLayer layer(layer_param); GradientChecker 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) { @@ -100,6 +102,8 @@ TYPED_TEST(SplitLayerTest, TestGPUGradient) { SplitLayer layer(layer_param); GradientChecker 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_); } }