From 14b8540551329120c8f8a2bdb53fd8837489ec11 Mon Sep 17 00:00:00 2001 From: Pei Yang Date: Fri, 5 Jun 2020 13:43:12 +0800 Subject: [PATCH] add default ctor for AnalysisConfig python api. test=develop (#24924) --- 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 59b3876ff33..1b6c407e6bf 100644 --- a/paddle/fluid/pybind/inference_api.cc +++ b/paddle/fluid/pybind/inference_api.cc @@ -379,7 +379,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