diff --git a/paddle/fluid/pybind/inference_api.cc b/paddle/fluid/pybind/inference_api.cc index 59b3876ff33e3c1ec20a9fb903771436a5a3555c..1b6c407e6bf1a2a38752acb3c096bbdc64c36da6 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 &)) &