From dc7d34efc4109239de1d6041c55670c67937a00c Mon Sep 17 00:00:00 2001 From: Pei Yang Date: Fri, 5 Jun 2020 19:45:54 +0800 Subject: [PATCH] add default ctor for AnalysisConfig python api. test=develop (#24925) --- paddle/fluid/pybind/inference_api.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/inference_api.cc b/paddle/fluid/pybind/inference_api.cc index 4803aabf942..2a1de8c6724 100644 --- a/paddle/fluid/pybind/inference_api.cc +++ b/paddle/fluid/pybind/inference_api.cc @@ -371,7 +371,8 @@ void BindAnalysisConfig(py::module *m) { .value("Half", AnalysisConfig::Precision::kHalf) .export_values(); - analysis_config.def(py::init()) + analysis_config.def(py::init<>()) + .def(py::init()) .def(py::init()) .def(py::init()) .def("set_model", (void (AnalysisConfig::*)(const std::string &)) & -- GitLab