return torch._C._cuda_getDeviceCount() > 0