/home/pjw36/.conda/envs/pjw37/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:109.) return torch._C._cuda_getDeviceCount() > 0
时间: 2023-12-14 08:05:44 浏览: 194
几种经典的Hash算法的实现(源代码).doc
引用\[1\]和\[2\]是关于Go语言的protobuf库的版本信息。而引用\[3\]是一个报错信息,报错内容是关于在运行中遇到的问题。根据报错信息,可能是由于CUDA环境设置不正确导致的错误。具体来说,可能是CUDA_VISIBLE_DEVICES环境变量在程序启动后被更改所导致的错误。为了解决这个问题,可以尝试将可用设备设置为零,即将CUDA_VISIBLE_DEVICES环境变量设置为0。这样可以避免CUDA初始化时出现未知错误。
#### 引用[.reference_title]
- *1* *2* [go.sum · Gitee 极速下载/nats-server - Gitee.com](https://blog.csdn.net/weixin_33525438/article/details/116185084)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [解决 <frozen importlib._bootstrap> /.cache/huggingface/transformers/transformers‘ already exists](https://blog.csdn.net/weixin_43499457/article/details/115177937)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文