我在命令行下结果是 true,但在项目中返回 false,随便新建一个项目也是true

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=t
orch.device('cpu') to map your storages to the CPU.