未验证 提交 e95838dd 编写于 作者: L Leo Chen 提交者: GitHub

fix gcc warning of cast-function-type (#42235)

上级 ba4e7c7e
...@@ -163,7 +163,6 @@ if(NOT APPLE) ...@@ -163,7 +163,6 @@ if(NOT APPLE)
set(COMMON_FLAGS set(COMMON_FLAGS
${COMMON_FLAGS} ${COMMON_FLAGS}
-Wno-format-truncation # Warning in boost gcc 8.2 -Wno-format-truncation # Warning in boost gcc 8.2
-Wno-error=cast-function-type # Warning in boost gcc 8.2
-Wno-error=parentheses # Warning in boost gcc 8.2 -Wno-error=parentheses # Warning in boost gcc 8.2
-Wno-error=catch-value # Warning in boost gcc 8.2 -Wno-error=catch-value # Warning in boost gcc 8.2
-Wno-error=nonnull-compare # Warning in boost gcc 8.2 -Wno-error=nonnull-compare # Warning in boost gcc 8.2
......
...@@ -60,11 +60,7 @@ void BindDistFleetWrapper(py::module* m) { ...@@ -60,11 +60,7 @@ void BindDistFleetWrapper(py::module* m) {
.def("load_model", &FleetWrapper::LoadModel) .def("load_model", &FleetWrapper::LoadModel)
.def("load_one_table", &FleetWrapper::LoadModelOneTable) .def("load_one_table", &FleetWrapper::LoadModelOneTable)
.def("init_server", &FleetWrapper::InitServer) .def("init_server", &FleetWrapper::InitServer)
.def("run_server", .def("run_server", &FleetWrapper::RunServer)
(uint64_t (FleetWrapper::*)(void)) & FleetWrapper::RunServer)
.def("run_server", (uint64_t (FleetWrapper::*)( // NOLINT
const std::string&, uint32_t)) & // NOLINT
FleetWrapper::RunServer)
.def("init_worker", &FleetWrapper::InitWorker) .def("init_worker", &FleetWrapper::InitWorker)
.def("push_dense_params", &FleetWrapper::PushDenseParamSync) .def("push_dense_params", &FleetWrapper::PushDenseParamSync)
.def("pull_dense_params", &FleetWrapper::PullDenseVarsSync) .def("pull_dense_params", &FleetWrapper::PullDenseVarsSync)
......
...@@ -765,10 +765,7 @@ void BindMkldnnQuantizerConfig(py::module *m) { ...@@ -765,10 +765,7 @@ void BindMkldnnQuantizerConfig(py::module *m) {
return; return;
}) })
.def("set_quant_batch_size", &MkldnnQuantizerConfig::SetWarmupBatchSize) .def("set_quant_batch_size", &MkldnnQuantizerConfig::SetWarmupBatchSize)
.def( .def("set_enabled_op_types", &MkldnnQuantizerConfig::SetEnabledOpTypes);
"set_enabled_op_types",
(void (MkldnnQuantizerConfig::*)(std::unordered_set<std::string> &)) &
MkldnnQuantizerConfig::SetEnabledOpTypes);
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册