tweak test case to expose bug.
authorChiyuan Zhang <pluskid@gmail.com>
Fri, 26 Sep 2014 17:18:38 +0000 (13:18 -0400)
committerChiyuan Zhang <pluskid@gmail.com>
Fri, 26 Sep 2014 17:18:38 +0000 (13:18 -0400)
src/caffe/test/test_data/generate_sample_data.py
src/caffe/test/test_hdf5data_layer.cpp

index 0516eff..2ab2386 100644 (file)
@@ -7,7 +7,7 @@ import h5py
 
 num_cols = 8
 num_rows = 10
-height = 5
+height = 6
 width = 5
 total_size = num_cols * num_rows * height * width
 
index acca75b..78a4522 100644 (file)
@@ -62,7 +62,7 @@ TYPED_TEST(HDF5DataLayerTest, TestRead) {
   hdf5_data_param->set_batch_size(batch_size);
   hdf5_data_param->set_source(*(this->filename));
   int num_cols = 8;
-  int height = 5;
+  int height = 6;
   int width = 5;
 
   // Test that the layer setup got the correct parameters.