From e31d0ac1e033cff4b6bd42e9b0f9fb3060508073 Mon Sep 17 00:00:00 2001 From: Chiyuan Zhang Date: Fri, 26 Sep 2014 13:18:38 -0400 Subject: [PATCH] tweak test case to expose bug. --- src/caffe/test/test_data/generate_sample_data.py | 2 +- src/caffe/test/test_hdf5data_layer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caffe/test/test_data/generate_sample_data.py b/src/caffe/test/test_data/generate_sample_data.py index 0516eff9158..2ab238611d8 100644 --- a/src/caffe/test/test_data/generate_sample_data.py +++ b/src/caffe/test/test_data/generate_sample_data.py @@ -7,7 +7,7 @@ num_cols = 8 num_rows = 10 -height = 5 +height = 6 width = 5 total_size = num_cols * num_rows * height * width diff --git a/src/caffe/test/test_hdf5data_layer.cpp b/src/caffe/test/test_hdf5data_layer.cpp index acca75b19b1..78a45223b90 100644 --- a/src/caffe/test/test_hdf5data_layer.cpp +++ b/src/caffe/test/test_hdf5data_layer.cpp @@ -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.