【发布时间】:2016-10-18 17:33:56
【问题描述】:
我正在使用 Lua/Torch 执行深度学习任务。有时我要加载一个非常大的模型,这会导致内存成本非常高,例如:
net = torch.load('./path/to/the/model.t7')
// after this line, the GPU memory cost raises to 2800MB of 3064MB
在这种情况下,如果我想清除变量怎么办,就像在 Matlab 中通过命令 clear var; 一样?
【问题讨论】: