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:
ed8b1da
)
fixed solver constructor in train_net.cpp
author
qipeng
<pengrobertqi@163.com>
Mon, 21 Jul 2014 17:47:55 +0000
(10:47 -0700)
committer
Jeff Donahue
<jeff.donahue@gmail.com>
Mon, 1 Sep 2014 18:33:41 +0000
(11:33 -0700)
tools/train_net.cpp
patch
|
blob
|
history
diff --git
a/tools/train_net.cpp
b/tools/train_net.cpp
index
2a2a522
..
3652182
100644
(file)
--- a/
tools/train_net.cpp
+++ b/
tools/train_net.cpp
@@
-22,8
+22,7
@@
int main(int argc, char** argv) {
ReadProtoFromTextFileOrDie(argv[1], &solver_param);
LOG(INFO) << "Starting Optimization";
- shared_ptr<Solver<float> > solver =
- (shared_ptr<Solver<float> >) GetSolver<float>(solver_param);
+ shared_ptr<Solver<float> > solver(GetSolver<float>(solver_param));
if (argc == 3) {
LOG(INFO) << "Resuming from " << argv[2];
solver->Solve(argv[2]);