未验证 提交 dc7d34ef 编写于 作者: P Pei Yang 提交者: GitHub

add default ctor for AnalysisConfig python api. test=develop (#24925)

上级 ff6c0406
...@@ -371,7 +371,8 @@ void BindAnalysisConfig(py::module *m) { ...@@ -371,7 +371,8 @@ void BindAnalysisConfig(py::module *m) {
.value("Half", AnalysisConfig::Precision::kHalf) .value("Half", AnalysisConfig::Precision::kHalf)
.export_values(); .export_values();
analysis_config.def(py::init<const AnalysisConfig &>()) analysis_config.def(py::init<>())
.def(py::init<const AnalysisConfig &>())
.def(py::init<const std::string &>()) .def(py::init<const std::string &>())
.def(py::init<const std::string &, const std::string &>()) .def(py::init<const std::string &, const std::string &>())
.def("set_model", (void (AnalysisConfig::*)(const std::string &)) & .def("set_model", (void (AnalysisConfig::*)(const std::string &)) &
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册