未验证 提交 47ca1814 编写于 作者: Q QI JUN 提交者: GitHub

fix mac build error (#8856)

上级 f3cdeb9a
......@@ -110,6 +110,8 @@ void TestInference(const std::string& dirname,
// Users can get the device_id using:
// int device_id = place.GetDeviceId();
paddle::platform::SetDeviceId(0);
#else
PADDLE_THROW("'CUDAPlace' is not supported in CPU only device.");
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册