Open xderui opened 4 months ago
描述这个 bug 在对验证集进行验证时所使用的显存缓冲区没有被释放,导致在下一轮训练时可能会出现显存超出并训练变慢的情况。
如何复现 python .\run_recbole.py --dataset gowalla-merged --model GRU4RecCPR
预期 在每一轮结束后执行torch.cuda.empty_cache()清空显存
torch.cuda.empty_cache()
屏幕截图 未清空显存缓存: 清空显存缓存: 添加代码:
实验环境(请补全下列信息):
描述这个 bug 在对验证集进行验证时所使用的显存缓冲区没有被释放,导致在下一轮训练时可能会出现显存超出并训练变慢的情况。
如何复现 python .\run_recbole.py --dataset gowalla-merged --model GRU4RecCPR
预期 在每一轮结束后执行
torch.cuda.empty_cache()
清空显存屏幕截图 未清空显存缓存: 清空显存缓存: 添加代码:
实验环境(请补全下列信息):