From d3569c7ec5ecff16c126253acfa2a51bfbc117ca Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Mon, 13 Dec 2021 13:50:38 +0800 Subject: [PATCH] fix mac import hang, test=develop (#38051) --- paddle/fluid/pybind/eager_op_function_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/pybind/eager_op_function_generator.cc b/paddle/fluid/pybind/eager_op_function_generator.cc index 222db68a1c..0bfc883730 100644 --- a/paddle/fluid/pybind/eager_op_function_generator.cc +++ b/paddle/fluid/pybind/eager_op_function_generator.cc @@ -487,12 +487,12 @@ int main(int argc, char* argv[]) { << "};\n\n"; out << "inline void BindEagerOpFunctions(pybind11::module *module) {\n" + << " InitOpsAttrTypeMap();\n" << " auto m = module->def_submodule(\"ops\");\n" << " if (PyModule_AddFunctions(m.ptr(), ExtestMethods) < 0) {\n" << " PADDLE_THROW(platform::errors::Fatal (\"Add functions to " "core.eager.ops failed!\"));\n" << " }\n\n" - << " InitOpsAttrTypeMap();" << "}\n\n" << "} // namespace pybind\n" << "} // namespace paddle\n"; -- GitLab