Updated Database interface so that rather than CHECKing for certain conditions inside...
authorKevin James Matzen <kmatzen@cs.cornell.edu>
Mon, 13 Oct 2014 00:20:31 +0000 (20:20 -0400)
committerKevin James Matzen <kmatzen@cs.cornell.edu>
Tue, 14 Oct 2014 23:31:30 +0000 (19:31 -0400)
commit73b16e43e4376207ddc30b5772ed4a3f5dba88d9
tree3c363539a67fdb77882147ff4e67ffab49273a79
parentc86ed418b9e9a89a98de9c5d339a595ac7ebc3c2
Updated Database interface so that rather than CHECKing for certain conditions inside open, put, get, and commit, these functions return a bool indicating whether or not the operation was successful or a failure.  This means the caller is now responsible for error checking.
12 files changed:
examples/cifar10/convert_cifar_data.cpp
include/caffe/database.hpp
include/caffe/leveldb_database.hpp
include/caffe/lmdb_database.hpp
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