From f48f8d9bd62e6fe9ec5a0181f5813b7b0f103364 Mon Sep 17 00:00:00 2001 From: Wang Huan Date: Mon, 28 Sep 2020 01:10:15 +0000 Subject: [PATCH] delete CPUPlace and XPUPlace, test=develop --- paddle/fluid/pybind/pybind.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paddle/fluid/pybind/pybind.cc b/paddle/fluid/pybind/pybind.cc index be5effe35fb..ae0b50461a1 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; -- GitLab