You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to backward through the graph a second time, but the saved intermediate results have already been freed. Specify retain_graph=True when calling backward the first time.
#15
Open
hkyoo52 opened this issue
Mar 4, 2022
· 0 comments
동일 혹은 일부의 loss 값에 loss.backward를 반복했다.
model 내에 y=nn.Lineard(concat(y1,y2)) 이런게 있을 때 y1과 y 둘다 loss.backward() 주면 안된다.
(y1만 loss.backward() 사용)
The text was updated successfully, but these errors were encountered: