啥情况,8g显存只有7g能用
pytorch吧
全部回复
仅看楼主
level 2
風影灬
楼主
Tried to allocate 7.46 GiB (GPU 0; 8.00 GiB total capacity; 0 bytes already allocated; 7.00 GiB free; 0 bytes reserved in total by PyTorch)
已尝试分配7.46 GiB(GPU 0;8.00 GiB总容量;已分配0个字节;7.00 GiB可用;PyTorch总共保留0个字节)
有无大佬知道,显卡坏了吗
2023年08月26日 03点08分
1
level 11
sealed_ss
没坏,都是这样的
2023年08月27日 12点08分
2
風影灬
谢谢,能否试下这段代码能否正常运行 import torch torch.cuda.empty_cache() total_memory = torch.cuda.get_device_properties(0).total_memory tmp_tensor = torch.empty(int(total_memory), dtype=torch.int8, device='cuda') 我在另一张卡上运行正常,这张会报错
2023年09月01日 03点09分
level 1
凌乱枫9
因为gpu不只是给你这个计算用 别的地方也在用
2023年09月01日 03点09分
3
風影灬
谢谢,能否试下这段代码能否正常运行 import torch torch.cuda.empty_cache() total_memory = torch.cuda.get_device_properties(0).total_memory tmp_tensor = torch.empty(int(total_memory), dtype=torch.int8, device='cuda') 我在另一张卡上运行正常,这张会报错
2023年09月01日 03点09分
1