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:
e3daae6
)
Created reset command and changed END to NULL again
author
Sergio Guadarrama
<sguada@gmail.com>
Mon, 17 Mar 2014 19:44:58 +0000
(12:44 -0700)
committer
Sergio Guadarrama
<sguada@gmail.com>
Mon, 31 Mar 2014 21:42:27 +0000
(14:42 -0700)
matlab/caffe/matcaffe.cpp
patch
|
blob
|
history
diff --git
a/matlab/caffe/matcaffe.cpp
b/matlab/caffe/matcaffe.cpp
index
b02fc8e
..
5df109e
100644
(file)
--- a/
matlab/caffe/matcaffe.cpp
+++ b/
matlab/caffe/matcaffe.cpp
@@
-279,11
+279,11
@@
static void init(MEX_ARGS) {
}
}
-static void
end
(MEX_ARGS) {
+static void
reset
(MEX_ARGS) {
if (net_) {
net_.reset();
init_key = -2;
- LOG(INFO) << "Network reset,
now it needs to init before used
again";
+ LOG(INFO) << "Network reset,
call init before use it
again";
}
}
@@
-334,8
+334,9
@@
static handler_registry handlers[] = {
{ "set_device", set_device },
{ "get_weights", get_weights },
{ "get_init_key", get_init_key },
+ { "reset", reset },
// The end.
- { "END",
end
},
+ { "END",
NULL
},
};