提交 f48f8d9b 编写于 作者: W Wang Huan

delete CPUPlace and XPUPlace, test=develop

上级 df53f7f0
......@@ -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<paddle::platform::ExportedStatValue<float>> float_stats;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册