diff --git a/paddle/fluid/pybind/eager_op_function_generator.cc b/paddle/fluid/pybind/eager_op_function_generator.cc index 222db68a1c1aa165819eddea3d986dafc5f4a016..0bfc8837304691a2a8a98f2b9a2bda84ff75dbff 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";