summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRonghang Hu <huronghang@hotmail.com>2015-09-24 19:40:45 -0700
committerRonghang Hu <huronghang@hotmail.com>2015-10-16 22:32:32 -0700
commit0eea815ad6fa3313888b6229499a237820258deb (patch)
treeb76664a58993a0b0658a01f24dd3d0f8898ceac1 /tools
parentb822a702d19d4fbebbc91198a991f91c34e60650 (diff)
downloadcaffeonacl-0eea815ad6fa3313888b6229499a237820258deb.tar.gz
caffeonacl-0eea815ad6fa3313888b6229499a237820258deb.tar.bz2
caffeonacl-0eea815ad6fa3313888b6229499a237820258deb.zip
Change solver type to string and provide solver registry
Diffstat (limited to 'tools')
-rw-r--r--tools/caffe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/caffe.cpp b/tools/caffe.cpp
index e3f684b5..1cb6ad89 100644
--- a/tools/caffe.cpp
+++ b/tools/caffe.cpp
@@ -194,7 +194,7 @@ int train() {
GetRequestedAction(FLAGS_sighup_effect));
shared_ptr<caffe::Solver<float> >
- solver(caffe::GetSolver<float>(solver_param));
+ solver(caffe::SolverRegistry<float>::CreateSolver(solver_param));
solver->SetActionFunction(signal_handler.GetActionFunction());