Skip to content

Commit

Permalink
update HDF5 layer test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Sep 26, 2014
1 parent e31d0ac commit c85b14b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified src/caffe/test/test_data/sample_data.h5
Binary file not shown.
Binary file modified src/caffe/test/test_data/sample_data_2_gzip.h5
Binary file not shown.
4 changes: 2 additions & 2 deletions src/caffe/test/test_hdf5data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ TYPED_TEST(HDF5DataLayerTest, TestRead) {

// Every two iterations we are reading the second file,
// which has the same labels, but data is offset by total data size,
// which is 2000 (see generate_sample_data).
int file_offset = (iter % 4 < 2) ? 0 : 2000;
// which is 2400 (see generate_sample_data).
int file_offset = (iter % 4 < 2) ? 0 : 2400;

for (int i = 0; i < batch_size; ++i) {
EXPECT_EQ(
Expand Down

0 comments on commit c85b14b

Please sign in to comment.