diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index be5effe35fb90df928e4ca282557b8ff86b50bec..ae0b50461a113dd90a0b457b5a26030394657f20 100644 --- a/paddle/fluid/pybind/pybind.cc +++ b/paddle/fluid/pybind/pybind.cc @@ -1663,15 +1663,9 @@ All parameter, weight, gradient are variables in Paddle. m.def("is_compiled_with_mkldnn", IsCompiledWithMKLDNN); m.def("is_compiled_with_brpc", IsCompiledWithBrpc); m.def("is_compiled_with_dist", IsCompiledWithDIST); - m.def("_cuda_synchronize", [](const platform::XPUPlace &place) { - platform::DeviceContextPool::Instance().Get(place)->Wait(); - }); m.def("_cuda_synchronize", [](const platform::CUDAPlace &place) { platform::DeviceContextPool::Instance().Get(place)->Wait(); }); - m.def("_cuda_synchronize", [](const platform::CPUPlace &place) { - platform::DeviceContextPool::Instance().Get(place)->Wait(); - }); m.def("get_float_stats", []() { std::vector> float_stats;