tweaked Gaussian filler tests for less false fails
authorPrzemysław Dolata <snowball91b@gmail.com>
Wed, 11 Apr 2018 13:32:25 +0000 (15:32 +0200)
committerWook Song <wook16.song@samsung.com>
Thu, 23 Jan 2020 13:50:41 +0000 (22:50 +0900)
src/caffe/test/test_filler.cpp

index 1e6b5c2..34f7007 100644 (file)
@@ -257,16 +257,16 @@ TYPED_TEST(GaussianFillerTest, TestFill) {
 }
 
 TYPED_TEST(GaussianFillerTest, TestFill1D) {
-  vector<int> blob_shape(1, 25);
-  const TypeParam tolerance = TypeParam(5);
+  vector<int> blob_shape(1, 125);
+  const TypeParam tolerance = TypeParam(3);
   this->test_params(blob_shape, tolerance);
 }
 
 TYPED_TEST(GaussianFillerTest, TestFill2D) {
   vector<int> blob_shape;
   blob_shape.push_back(8);
-  blob_shape.push_back(3);
-  const TypeParam tolerance = TypeParam(5);
+  blob_shape.push_back(15);
+  const TypeParam tolerance = TypeParam(3);
   this->test_params(blob_shape, tolerance);
 }