[tests] don't use Gaussian labels in NetTest's TinyNet
authorJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 30 Dec 2014 20:52:53 +0000 (12:52 -0800)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 30 Dec 2014 20:52:53 +0000 (12:52 -0800)
Previously, labels were being nonsensically filled with a zero-mean
Gaussian. Now they are just set to constant zero. Note that this is not
necessary for TrickyNet, neither forward nor backward are ever called.

src/caffe/test/test_net.cpp

index 611d11b..319958f 100644 (file)
@@ -75,6 +75,10 @@ class NetTest : public MultiDeviceTest<TypeParam> {
         "      type: 'gaussian' "
         "      std: 0.01 "
         "    } "
+        "    data_filler { "
+        "      type: 'constant' "
+        "      value: 0 "
+        "    } "
         "  } "
         "  top: 'data' "
         "  top: 'label' "