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

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

上级 a359cade
......@@ -379,7 +379,8 @@ void BindAnalysisConfig(py::module *m) {
.value("Half", AnalysisConfig::Precision::kHalf)
.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 &, 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.
先完成此消息的编辑!
想要评论请 注册