Seed HingeLossLayerTest; bad values can cause test (and therefore Travis
authorJeff Donahue <jeff.donahue@gmail.com>
Mon, 14 Jul 2014 09:44:28 +0000 (02:44 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Mon, 14 Jul 2014 09:44:28 +0000 (02:44 -0700)
CI build) to fail

src/caffe/test/test_hinge_loss_layer.cpp

index 868e9e9..df6d8e2 100644 (file)
@@ -28,6 +28,7 @@ class HingeLossLayerTest : public MultiDeviceTest<TypeParam> {
       : blob_bottom_data_(new Blob<Dtype>(10, 5, 1, 1)),
         blob_bottom_label_(new Blob<Dtype>(10, 1, 1, 1)) {
     // fill the values
+    Caffe::set_random_seed(1701);
     FillerParameter filler_param;
     filler_param.set_std(10);
     GaussianFiller<Dtype> filler(filler_param);