Hi Fengchun,
After I download and process MNIST dataset and run "main_Digits.py", I got the following error: "RuntimeError: 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". Could tell me what happens here? And when I specify retain_graph=True, this error dispeared. Is this an error in your code? or someting else caused this error?
Thanks!
Hi Fengchun,
After I download and process MNIST dataset and run "main_Digits.py", I got the following error: "RuntimeError: 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". Could tell me what happens here? And when I specify retain_graph=True, this error dispeared. Is this an error in your code? or someting else caused this error?
Thanks!