我的神经网络更是的时候, 再 .backward 的时候程序总是卡死
pytorch吧
全部回复
仅看楼主
level 1
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward.
2023年12月14日 02点12分 1
level 11
下面那段话指出了你程序中可能存在的问题
2023年12月14日 04点12分 3
谢谢,我去试一下,下面兄弟的建议
2023年12月14日 07点12分
level 6
2023年12月14日 04点12分 5
谢谢兄弟,我去试一下
2023年12月14日 07点12分
@可靠的浇了2 ��博主成功解决了嘛?
2024年07月17日 03点07分
1