본문으로 건너뛰기
재미있는 삽질 기록
Home
Categories
Home
Categories
#memory
clone과 detach, 그리고 계산 그래프
Pytorch에서 Tensor를 다룰 때 경고문을 자주 보았을 것이다. UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.detach().clone() ... rather than...
#pytorch #autograd #memory
|
2025-09-06