add cuda check to show errors when run on paddle compiled with cpu only (#2732)
* add cuda check to show errors when run on paddle compiled with cpu only * change use_cuda to use_gpu in the error infomation to be consistent with code
Showing
想要评论请 注册 或 登录