Skip to content

Commit

Permalink
Merge pull request BVLC#685 from jeffdonahue/seed-hinge-loss-test
Browse files Browse the repository at this point in the history
Seed HingeLossLayerTest; bad values can cause test (and therefore Travis build) to fail
  • Loading branch information
jeffdonahue committed Jul 14, 2014
2 parents cdb6014 + 717b6b0 commit 1d3df1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/caffe/test/test_hinge_loss_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d3df1d

Please sign in to comment.