projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fe4603
)
layer more debug msg
author
Yangqing Jia
<jiayq84@gmail.com>
Mon, 30 Sep 2013 16:26:08 +0000
(09:26 -0700)
committer
Yangqing Jia
<jiayq84@gmail.com>
Mon, 30 Sep 2013 16:26:08 +0000
(09:26 -0700)
src/caffe/layers/data_layer.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/layers/data_layer.cpp
b/src/caffe/layers/data_layer.cpp
index
442a359
..
e527bd3
100644
(file)
--- a/
src/caffe/layers/data_layer.cpp
+++ b/
src/caffe/layers/data_layer.cpp
@@
-25,7
+25,8
@@
void DataLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom,
LOG(INFO) << "Opening leveldb " << this->layer_param_.source();
leveldb::Status status = leveldb::DB::Open(
options, this->layer_param_.source(), &db_temp);
- CHECK(status.ok());
+ CHECK(status.ok()) << "Failed to open leveldb "
+ << this->layer_param_.source();
db_.reset(db_temp);
iter_.reset(db_->NewIterator(leveldb::ReadOptions()));
iter_->SeekToFirst();