|
|
|
@@ -74,8 +74,6 @@ PYBIND11_MODULE(_c_expression, m) { |
|
|
|
.def("get_func_graph", &ExecutorPy::GetFuncGraph, py::arg("phase") = py::str(""), "Get graph pointer.") |
|
|
|
.def("get_func_graph_proto", &ExecutorPy::GetFuncGraphProto, py::arg("phase") = py::str(""), |
|
|
|
py::arg("type") = py::str("onnx_ir"), "Get graph proto string by specifying ir type.") |
|
|
|
.def("convert_funcgraph_to_mindir", &ExecutorPy::ConvertFuncGraphToMindIR, py::arg("graph"), |
|
|
|
"Convert FuncGraph to MindIR proto.") |
|
|
|
.def("compile", &ExecutorPy::Compile, py::arg("obj"), py::arg("args"), py::arg("phase") = py::str(""), |
|
|
|
py::arg("use_vm") = py::bool_(false), "Compile obj by executor.") |
|
|
|
.def("updata_param_node_default_input", &ExecutorPy::UpdataParamNodeDefaultInput, py::arg("phase"), |
|
|
|
@@ -110,7 +108,6 @@ PYBIND11_MODULE(_c_expression, m) { |
|
|
|
(void)m.def("init_backend", &mindspore::pipeline::InitBackend, "Init Backend."); |
|
|
|
|
|
|
|
(void)m.def("export_graph", &mindspore::pipeline::ExportGraph, "Export Graph."); |
|
|
|
(py::object) m.def("load_mindir", &mindspore::pipeline::LoadMindIR, py::arg("file_name"), "Load MindIR as Graph."); |
|
|
|
|
|
|
|
(void)py::class_<mindspore::MpiConfig, std::shared_ptr<mindspore::MpiConfig>>(m, "MpiConfig") |
|
|
|
.def_static("get_instance", &mindspore::MpiConfig::GetInstance, "Get mpi config instance.") |
|
|
|
|