Templated the key and value types for the Database interface. The Database is now...
authorKevin James Matzen <kmatzen@cs.cornell.edu>
Mon, 13 Oct 2014 17:16:04 +0000 (13:16 -0400)
committerKevin James Matzen <kmatzen@cs.cornell.edu>
Tue, 14 Oct 2014 23:35:23 +0000 (19:35 -0400)
commit08b971feae8551ca5c7ce31a938a1f232ee56af2
treeb8569b89b09583b4434b0d700ee2943f24b37075
parent0987c72c9d11b94524e1dc91150daf273c5b2537
Templated the key and value types for the Database interface.  The Database is now responsible for serialization.  Refactored the tests so that they reuse the same code for each value type and backend configuration.
15 files changed:
examples/cifar10/convert_cifar_data.cpp
include/caffe/data_layers.hpp
include/caffe/database.hpp
include/caffe/database_factory.hpp
include/caffe/leveldb_database.hpp
include/caffe/lmdb_database.hpp
src/caffe/database_factory.cpp
src/caffe/layers/data_layer.cpp
src/caffe/leveldb_database.cpp
src/caffe/lmdb_database.cpp
src/caffe/test/test_data_layer.cpp
src/caffe/test/test_database.cpp
tools/compute_image_mean.cpp
tools/convert_imageset.cpp
tools/extract_features.cpp