Open bradzhang1128 opened 4 years ago
bug描述 第一个epoch 没问题 第二个epoch, 出现如下问题: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
修改loss.backward()为loss.backward(retain_graph)以后还是有问题 可能跟computation graph 有关?求解 还有人遇到么 版本信息 pytorch: torchvision: torchtext: ...
bug描述 第一个epoch 没问题 第二个epoch, 出现如下问题: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.
修改loss.backward()为loss.backward(retain_graph)以后还是有问题 可能跟computation graph 有关?求解 还有人遇到么 版本信息 pytorch: torchvision: torchtext: ...