summaryrefslogtreecommitdiff
path: root/python/caffe/_caffe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/caffe/_caffe.cpp')
-rw-r--r--python/caffe/_caffe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/caffe/_caffe.cpp b/python/caffe/_caffe.cpp
index 0e38dee7..8687dd87 100644
--- a/python/caffe/_caffe.cpp
+++ b/python/caffe/_caffe.cpp
@@ -134,8 +134,8 @@ void Net_SetInputArrays(Net<Dtype>* net, bp::object data_obj,
Solver<Dtype>* GetSolverFromFile(const string& filename) {
SolverParameter param;
- ReadProtoFromTextFileOrDie(filename, &param);
- return GetSolver<Dtype>(param);
+ ReadSolverParamsFromTextFileOrDie(filename, &param);
+ return SolverRegistry<Dtype>::CreateSolver(param);
}
struct NdarrayConverterGenerator {