projects
/
platform
/
upstream
/
caffeonacl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a0a6f
)
Set data_size_initialized to true after data_size is initialized
author
Kai Li
<kaili_kloud@163.com>
Wed, 12 Feb 2014 08:15:08 +0000
(16:15 +0800)
committer
Kai Li
<kaili_kloud@163.com>
Wed, 12 Feb 2014 08:15:08 +0000
(16:15 +0800)
examples/convert_imageset.cpp
patch
|
blob
|
history
diff --git
a/examples/convert_imageset.cpp
b/examples/convert_imageset.cpp
index
513eb31
..
e739716
100644
(file)
--- a/
examples/convert_imageset.cpp
+++ b/
examples/convert_imageset.cpp
@@
-78,6
+78,7
@@
int main(int argc, char** argv) {
};
if (!data_size_initialized) {
data_size = datum.channels() * datum.height() * datum.width();
+ data_size_initialized = true;
} else {
const string& data = datum.data();
CHECK_EQ(data.size(), data_size) << "Incorrect data field size " << data.size();