summaryrefslogtreecommitdiff
path: root/src/caffe/test/test_hinge_loss_layer.cpp
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-07-14 02:44:28 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-07-14 02:44:28 -0700
commit717b6b0c1f396923e6380f3745db3b141e7d5f19 (patch)
treede86be933229e39a067faf5d7979571e01bdb26a /src/caffe/test/test_hinge_loss_layer.cpp
parentcdb6014046bdd1e994b675f64c0a460ba007fd7a (diff)
downloadcaffeonacl-717b6b0c1f396923e6380f3745db3b141e7d5f19.tar.gz
caffeonacl-717b6b0c1f396923e6380f3745db3b141e7d5f19.tar.bz2
caffeonacl-717b6b0c1f396923e6380f3745db3b141e7d5f19.zip
Seed HingeLossLayerTest; bad values can cause test (and therefore Travis
CI build) to fail
Diffstat (limited to 'src/caffe/test/test_hinge_loss_layer.cpp')
-rw-r--r--src/caffe/test/test_hinge_loss_layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/caffe/test/test_hinge_loss_layer.cpp b/src/caffe/test/test_hinge_loss_layer.cpp
index 868e9e9a..df6d8e25 100644
--- a/src/caffe/test/test_hinge_loss_layer.cpp
+++ b/src/caffe/test/test_hinge_loss_layer.cpp
@@ -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);